Skip to content

Bump peaceiris/actions-gh-pages from 3 to 4 #45

Bump peaceiris/actions-gh-pages from 3 to 4

Bump peaceiris/actions-gh-pages from 3 to 4 #45

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@v2
- 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@v4
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@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out