Skip to content

Commit

Permalink
[FIX] fix doc deploy (#23)
Browse files Browse the repository at this point in the history
* publish to gh-pages

* allow write

* change dir
  • Loading branch information
Remi-Gau authored Oct 7, 2024
1 parent 0295124 commit 90f0aa0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/master-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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 Down Expand Up @@ -53,7 +53,6 @@ jobs:
name: Deploy API Documentation
runs-on: ubuntu-latest
if: success()

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -70,19 +69,20 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[optional,doc]
- name: Build API documentation
run: make -C docs html

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'build'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true

build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
Expand Down

0 comments on commit 90f0aa0

Please sign in to comment.