Skip to content

Commit

Permalink
Fix build doc workflow (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGijsbers authored Aug 4, 2022
1 parent 4093f6f commit 556d601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ jobs:
pip install ".[doc]"
- name: Clone GH-Pages
if: ${{ github.event_name != "pull_request" }}
if: ${{ github.event_name != 'pull_request' }}
uses: actions/checkout@v3
with:
ref: "gh-pages"
path: docs/build/

- name: Build Docs
run: |
sphinx-build docs/source docs/build/${{ github.ref }}
sphinx-build docs/source docs/build/${{ github.ref_name }}
- name: Push GH-Pages
if: ${{ github.event_name != "pull_request" }}
if: ${{ github.event_name != 'pull_request' }}
run: |
cd docs/build
git config user.name github-actions
git config user.email [email protected]
git add ${{ github.ref }}
git add ${{ github.ref_name }}
git commit -m "Autodeploy docs"
git push

0 comments on commit 556d601

Please sign in to comment.