diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..c60e9d2 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,39 @@ +name: docs + +on: + release: + types: [published] + tags: + - 'v*' + +jobs: + docs: + name: Create docs for GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2.2.2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r req-doc.txt + + - name: Sphinx Build + run: | + cd docs + sphinx-build -b html . _build + + - name: Upload to Github Pages + uses: crazy-max/ghaction-github-pages@v2.4.1 + with: + build_dir: docs/_build/ + target_branch: gh-pages + jekyll: false + committer: Wojciech Wentland + author: Wojciech Wentland + env: + GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}