Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

permissions:
contents: read
contents: write
pages: write
id-token: write

Expand Down Expand Up @@ -35,6 +35,14 @@ jobs:
- name: Build Sphinx docs
run: ./build-docs.sh

- name: Publish built docs for Binder
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_branch: gh-pages
force_orphan: true

- name: Configure GitHub Pages
uses: actions/configure-pages@v6

Expand All @@ -53,4 +61,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
uses: actions/deploy-pages@v5
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"binder": {
"org": "python-accelerator-middle-layer",
"repo": "documentation",
"branch": "main",
# Binder reads files from this branch. The docs build workflow publishes
# the generated documentation and notebooks here.
"branch": "gh-pages",
"binderhub_url": "https://mybinder.org",
"dependencies": ["../requirements.txt"],
"notebooks_dir": "notebooks",
Expand Down
Loading