diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ffeecbc..06510521 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,12 @@ jobs: - run: make docs + - name: Store docs site + uses: actions/upload-artifact@v3 + with: + name: docs + path: site + test: name: test py${{ matrix.python }} with redis:${{ matrix.redis }} on ${{ matrix.os }} strategy: @@ -98,6 +104,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: get docs + uses: actions/download-artifact@v3 + with: + name: docs + path: site + - name: set up python uses: actions/setup-python@v4 with: diff --git a/Makefile b/Makefile index 4aa4105d..f0c2d044 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ docs: @echo "open file://`pwd`/docs/_build/html/index.html" .PHONY: publish-docs -publish-docs: docs +publish-docs: cd docs/_build/ && cp -r html site && zip -r site.zip site @curl -H "Content-Type: application/zip" -H "Authorization: Bearer ${NETLIFY}" \ --data-binary "@docs/_build/site.zip" https://api.netlify.com/api/v1/sites/arq-docs.netlify.com/deploys