From 3e731695ddd93d353524bd8f8f42c89a6c6c4b2a Mon Sep 17 00:00:00 2001 From: Adriano Di Luzio Date: Thu, 17 Feb 2022 10:20:09 +0100 Subject: [PATCH 1/2] Add build docset step --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba2dab8ca..9c4a1a950 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-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'] From 0a3dd5543649ac5107d0f068e958781790de3b7f Mon Sep 17 00:00:00 2001 From: Adriano Di Luzio Date: Thu, 17 Feb 2022 10:30:32 +0100 Subject: [PATCH 2/2] non-slim container --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c4a1a950..3bce8e0f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: black --check . build-docset: runs-on: ubuntu-20.04 - container: python:3.9-slim + container: python:3.9 # Needs `make`, can't be slim steps: - name: Check out code uses: actions/checkout@v2