Skip to content

Commit

Permalink
Update doc generation action
Browse files Browse the repository at this point in the history
  • Loading branch information
x-team committed Nov 7, 2024
1 parent 2e87624 commit 8491c9f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
contents: write
pages: write
id-token: write

Expand All @@ -31,16 +31,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- uses: actions/upload-artifact@v3
with:
name: "stitch-docs"
path: "docs/_build/html/"
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx
- name: Sphinx build
run: |
sphinx-build docs _build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: peaceiris/actions-gh-pages@v3
with:
artifact_name: "stitch-docs"
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true

0 comments on commit 8491c9f

Please sign in to comment.