Skip to content

Commit

Permalink
Fix docs upload (#361)
Browse files Browse the repository at this point in the history
* try to fix deploy docs step

* should run just on a PR like this

* try it without the separate step

* do it as a step instead of a separate job
  • Loading branch information
ajfriend authored Apr 14, 2024
1 parent 0a588eb commit b0fe567
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,15 @@ jobs:
- name: Build the book
run: jupyter-book build docs/ --warningiserror --keep-going --all

- name: Upload artifacts to GitHub
- name: Upload artifacts
uses: actions/[email protected]
with:
name: html
path: docs/_build/html

deploy-docs:
needs: [build-docs]
runs-on: ubuntu-22.04
if: github.event.pull_request.merged

steps:
- uses: peaceiris/actions-gh-pages@v4
- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html

0 comments on commit b0fe567

Please sign in to comment.