2021-07-27 17:47:13 +09:00
|
|
|
name: github-pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
jobs:
|
|
|
|
main:
|
2022-08-01 17:43:20 +09:00
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
environment: github-pages
|
2021-07-27 17:47:13 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-01 00:33:23 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 02:06:36 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-02-22 17:45:22 +09:00
|
|
|
with: { node-version: lts/*, cache: yarn }
|
2022-02-24 17:12:42 +09:00
|
|
|
- name: Build
|
2022-02-22 18:02:22 +09:00
|
|
|
run: |
|
|
|
|
yarn install
|
2022-02-22 17:45:22 +09:00
|
|
|
yarn build
|
2023-09-01 01:14:57 +00:00
|
|
|
- uses: actions/upload-pages-artifact@v2
|
2022-08-01 17:43:20 +09:00
|
|
|
with:
|
|
|
|
path: pages
|
2023-06-01 01:44:50 +00:00
|
|
|
- uses: actions/deploy-pages@v2
|