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: jobs:
build-docs: build-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: sphinxdoc/sphinx:latest container: sphinxdoc/sphinx:latest
steps: steps:
@ -16,11 +15,21 @@ jobs:
- run: pip install -r requirements.txt - run: pip install -r requirements.txt
- run: cd docs && make html - run: cd docs && make html
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: DocumentationHTML name: DocumentationHTML
path: docs/build/html/ 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. # # Publish built docs to gh-pages branch.
# # =============================== # # ===============================
# - name: Commit documentation changes # - name: Commit documentation changes