Skip to content

Commit

Permalink
ADD: docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
desty2k committed Jun 30, 2021
1 parent c647037 commit f652832
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
with:
build_dir: docs/_build/
target_branch: gh-pages
jekyll: false
committer: Wojciech Wentland <[email protected]>
author: Wojciech Wentland <[email protected]>
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}

0 comments on commit f652832

Please sign in to comment.