Skip to content

Commit

Permalink
yaml to _modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-ftricomi committed Sep 27, 2023
1 parent 5087b3d commit ff54704
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@ permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx
- name: Debug
run: |
echo "GitHub Workspace: $GITHUB_WORKSPACE"
- name: Sphinx build
run: |
sphinx-build -build -b html $GITHUB_WORKSPACE/docs/source $GITHUB_WORKSPACE/docs/build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev/python_repo' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /docs/build/_modules
force_orphan: true

0 comments on commit ff54704

Please sign in to comment.