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

24 lines
558 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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- 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
- uses: actions/upload-pages-artifact@v2
2022-08-01 18:12:52 +09:00
with:
path: build
- uses: actions/deploy-pages@v2