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-11-07 13:58:45 +09:00
|
|
|
container: alpine@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
|
2022-05-11 19:03:56 +09:00
|
|
|
steps:
|
2024-11-07 13:58:45 +09:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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
|
2024-11-07 13:58:45 +09:00
|
|
|
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
|
2022-08-01 18:00:32 +09:00
|
|
|
with:
|
|
|
|
path: book
|
2024-11-07 13:58:45 +09:00
|
|
|
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
|