Skip to content

Deploy docs to GitHub Pages #18

Deploy docs to GitHub Pages

Deploy docs to GitHub Pages #18

Workflow file for this run

name: Trigger graphbook docs deploy
on:
workflow_run:
workflows: ["Release"]
types: [completed]
workflow_dispatch:
jobs:
dispatch:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Mint graphbook app token
id: graphbook_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.NEBO_DOCS_APP_ID }}
private-key: ${{ secrets.NEBO_DOCS_APP_PRIVATE_KEY }}
owner: graphbookai
repositories: graphbook
- name: Dispatch nebo-docs-updated to graphbook
env:
GH_TOKEN: ${{ steps.graphbook_token.outputs.token }}
NEBO_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
/repos/graphbookai/graphbook/dispatches \
-f "event_type=nebo-docs-updated" \
-f "client_payload[nebo_sha]=${NEBO_SHA}"