docs: streamline deployment

This commit is contained in:
Casper da Costa-Luis 2021-09-19 16:26:02 +01:00
parent 626caf2df2
commit 058fe72d56
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
1 changed files with 10 additions and 9 deletions

View File

@ -38,12 +38,13 @@ jobs:
git commit -a -m "update release notes to ${GITHUB_REF#refs/tags/}"
git push
popd
- name: Update Docs
run: |
pushd docs
git fetch --depth=1 origin gh-pages:gh-pages
git checkout gh-pages
git push --set-upstream origin gh-pages
git checkout -
make deploy
popd
- run: make -C docs build
- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
uses: casperdcl/push-dir@v1
with:
message: update static site
branch: gh-pages
dir: docs/build/docs/_site
nojekyll: true
name: tqdm[bot]
email: 68520887+tqdm-bot@users.noreply.github.com