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

26 lines
566 B
YAML
Raw Permalink Normal View History

2022-02-24 17:06:32 +09:00
name: github-pages
on:
workflow_run:
branches: [main]
workflows: [test]
types: [completed]
jobs:
main:
2022-02-24 17:51:47 +09:00
if: github.event.workflow_run.conclusion == 'success'
2022-08-01 18:00:33 +09:00
permissions:
pages: write
id-token: write
environment: github-pages
2022-02-24 17:06:32 +09:00
runs-on: ubuntu-latest
2023-11-17 12:09:50 +09:00
container: alpine
2022-02-24 17:06:32 +09:00
steps:
- uses: actions/checkout@v4
2022-02-24 17:06:32 +09:00
- name: Build
run: |
apk add mdbook tar
2022-02-24 17:06:32 +09:00
mdbook build
2024-01-01 01:16:14 +00:00
- uses: actions/upload-pages-artifact@v3
2022-08-01 18:00:33 +09:00
with:
path: book
2024-01-01 01:16:14 +00:00
- uses: actions/deploy-pages@v4