diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba2dab8ca..3bce8e0f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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']