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

23 lines
455 B
YAML
Raw Normal View History

2022-05-11 19:03:56 +09:00
name: github-pages
on:
push:
branches: [main]
jobs:
main:
2022-08-01 18:00:32 +09:00
permissions:
pages: write
id-token: write
environment: github-pages
2022-05-11 19:03:56 +09:00
runs-on: ubuntu-latest
2024-10-09 17:50:24 +09:00
container: alpine
2022-05-11 19:03:56 +09:00
steps:
- uses: actions/checkout@v4
2022-05-11 19:03:56 +09:00
- name: Build
run: |
2024-10-09 17:50:24 +09:00
apk add mdbook tar
2022-05-11 19:03:56 +09:00
mdbook build
- uses: actions/upload-pages-artifact@v3
2022-08-01 18:00:32 +09:00
with:
path: book
- uses: actions/deploy-pages@v4