publish to gh-pages

This commit is contained in:
Valentin Boettcher 2021-12-07 13:54:14 +01:00
parent 05071ade50
commit 07f496d4ea

View file

@ -7,7 +7,6 @@ on:
jobs:
build-docs:
runs-on: ubuntu-latest
container: sphinxdoc/sphinx:latest
steps:
@ -16,11 +15,21 @@ jobs:
- run: pip install -r requirements.txt
- run: cd docs && make html
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v2
with:
name: DocumentationHTML
path: docs/build/html/
- name: Publish to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs/build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # Publish built docs to gh-pages branch.
# # ===============================
# - name: Commit documentation changes