Skip to content

Commit

Permalink
Change from GITHUB_TOKEN in docs deploy
Browse files Browse the repository at this point in the history
Jobs authed with GITHUB_TOKEN will not kick off
other jobs triggered on push. Switch docs deploy
to an environment SSH key so that doc-version.yml
should work on release.
  • Loading branch information
dcamron authored Aug 10, 2021
1 parent 79abf12 commit 04bfd7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
runs-on: ubuntu-20.04
env:
DOC_VERSION: dev
environment:
name: github-pages
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -131,7 +133,7 @@ jobs:
if: ${{ github.event_name != 'pull_request' && matrix.python-version == '3.9' }}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.GHPAGES_DEPLOY_KEY }}
publish_dir: ./docs/build/html
exclude_assets: '.buildinfo,_static/jquery-*.js,_static/underscore-*.js'
destination_dir: ./${{ env.DOC_VERSION }}
Expand Down

0 comments on commit 04bfd7d

Please sign in to comment.