Skip to content

Bump actions/download-artifact from 3 to 4 (#16) #38

Bump actions/download-artifact from 3 to 4 (#16)

Bump actions/download-artifact from 3 to 4 (#16) #38

Workflow file for this run

name: ci
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- name: lint JS
run: just lint-js
- name: lint markdown
run: just lint-md
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install
run: npm install
- name: build
run: npm run build
- uses: actions/upload-artifact@v3
with:
name: site
path: out
publish:
needs:
- build
- lint
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v4
with:
name: site
path: out
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out