mirror of
https://github.com/kou029w/hasura-rest-hands-on.git
synced 2025-01-18 08:05:12 +00:00
31 lines
719 B
YAML
31 lines
719 B
YAML
name: github-pages
|
|
on:
|
|
workflow_run:
|
|
branches: [main]
|
|
workflows: [test]
|
|
types: [completed]
|
|
jobs:
|
|
main:
|
|
if: github.event.workflow_run.conclusion == 'success'
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
environment: github-pages
|
|
runs-on: ubuntu-latest
|
|
container: node:lts-alpine
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
cache: npm
|
|
- name: Build
|
|
run: |
|
|
apk add mdbook tar
|
|
npm ci
|
|
npm run build
|
|
mdbook build
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: book
|
|
- uses: actions/deploy-pages@v4
|