Skip to content

Commit

Permalink
new yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-ftricomi committed Sep 26, 2023
1 parent 9f6f699 commit 5087b3d
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,13 @@ permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- 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/
force_orphan: true
- 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 }}

0 comments on commit 5087b3d

Please sign in to comment.