mirror of
https://github.com/kou029w/hasura-rest-hands-on.git
synced 2025-03-30 09:35:17 +00:00
31 lines
963 B
YAML
31 lines
963 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@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # 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@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
|
|
with:
|
|
path: book
|
|
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
|