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

24 lines
515 B
YAML
Raw Normal View History

2020-12-29 03:33:50 +09:00
name: github-pages
on:
push:
branches: [master]
jobs:
main:
2022-08-01 18:12:52 +09:00
permissions:
pages: write
id-token: write
environment: github-pages
2020-12-29 03:33:50 +09:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2022-08-01 18:12:52 +09:00
with: { node-version: lts/*, cache: yarn }
- name: Build
2020-12-29 03:33:50 +09:00
run: |
2022-08-01 18:12:52 +09:00
yarn install
2020-12-29 03:33:50 +09:00
yarn build
2022-08-01 18:12:52 +09:00
- uses: actions/upload-pages-artifact@v1
with:
path: build
- uses: actions/deploy-pages@v2