Skip to content

Commit

Permalink
try to fix docs with deploy docs step
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen authored Mar 1, 2023
1 parent 9d8f265 commit cd34a00
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:

jobs:

# build docs for develop and main branches
build-docs:
# deploy docs for develop and main branches
deploy-docs:
runs-on: ubuntu-latest
steps:
# setup, checkout pull_request.head.ref for repo-vis
Expand Down Expand Up @@ -42,10 +42,16 @@ jobs:
run: |
jupyter-book config sphinx ./docs/
sphinx-build ./docs/ _build/html -b html
# TODO can we use an official GitHub Action? https://github.com/actions/deploy-pages
- name: deploy docs
uses: peaceiris/actions-gh-pages@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html

# deploy distribution if a new release and tag are created
deploy-dist:
needs: build-docs
needs: deploy-docs
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit cd34a00

Please sign in to comment.