Skip to content

Commit

Permalink
Deploy documentation via github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseefeld committed Dec 21, 2020
1 parent 78fc1c2 commit 2d44e52
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy documentation

on:
push:
branches: [ develop, master ]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup
uses: actions/setup-python@v2
- name: prerequisites
run: |
sudo apt-get install graphviz libgraphviz-dev
python -m pip install --upgrade pip
python -m pip install sphinx sphinx-argparse pygraphviz
- name: build
run: |
PYTHONPATH=`pwd`/src python -m faber.cli --srcdir=doc --builddir=build
if [ "${BRANCH_NAME}" == develop ]; then
destination_dir=doc/develop/html
else
destination_dir=doc/html
fi
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html
destination_dir: ${{ env.destination_dir }}
keep_files: true

0 comments on commit 2d44e52

Please sign in to comment.