chirimen-hands-on/.github/workflows/github-pages.yml

26 lines
513 B
YAML
Raw Normal View History

2022-10-05 22:06:10 +09:00
name: github-pages
on:
push:
branches: main
2022-10-05 22:06:10 +09:00
jobs:
build:
2022-10-05 22:06:10 +09:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-10-06 15:56:56 +09:00
- run: make build
- 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
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