Skip to content

Commit

Permalink
Add Github action to generate docset (#201)
Browse files Browse the repository at this point in the history
* Add build docset step

* non-slim container
  • Loading branch information
aldur authored Feb 18, 2022
1 parent e6dfdcf commit 9521f62
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,30 @@ jobs:
mypy pyteal
python3 -c "import pyteal" scripts/generate_init.py --check
black --check .
build-docset:
runs-on: ubuntu-20.04
container: python:3.9 # Needs `make`, can't be slim
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pip dependencies
run: |
pip install -r requirements.txt
pip install -r docs/requirements.txt
pip install doc2dash
- name: Make docs
run: |
cd docs
make html
doc2dash --name pyteal --index-page index.html --online-redirect-url https://pyteal.readthedocs.io/en/ _build/html
tar -czvf pyteal.docset.tar.gz pyteal.docset
- name: Archive docset
uses: actions/upload-artifact@v2
with:
name: pyteal.docset
path: docs/pyteal.docset.tar.gz
upload-to-pypi:
runs-on: ubuntu-20.04
needs: ['build-test']
Expand Down

0 comments on commit 9521f62

Please sign in to comment.