pucchinglgl/.github/workflows/github-pages.yml

23 lines
515 B
YAML

name: github-pages
on:
push:
branches: [master]
jobs:
main:
permissions:
pages: write
id-token: write
environment: github-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with: { node-version: lts/*, cache: yarn }
- name: Build
run: |
yarn install
yarn build
- uses: actions/upload-pages-artifact@v2
with:
path: build
- uses: actions/deploy-pages@v2