2022-10-05 22:06:10 +09:00
|
|
|
name: github-pages
|
|
|
|
on:
|
|
|
|
push:
|
2023-08-28 17:38:28 +09:00
|
|
|
branches: main
|
2022-10-05 22:06:10 +09:00
|
|
|
jobs:
|
2023-08-28 17:38:28 +09:00
|
|
|
build:
|
2022-10-05 22:06:10 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-28 19:29:13 +09:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-06 15:56:56 +09:00
|
|
|
- run: make build
|
2023-08-28 17:38:28 +09:00
|
|
|
- uses: actions/upload-pages-artifact@v2
|
2022-10-05 22:06:10 +09:00
|
|
|
with:
|
2022-10-06 15:56:56 +09:00
|
|
|
path: dist
|
2023-08-28 17:38:28 +09:00
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deploy.outputs.page_url }}
|
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- id: deploy
|
|
|
|
uses: actions/deploy-pages@v2
|