hasura-rest-hands-on/.github/workflows/github-pages.yml

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