diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27183df..d268f24 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,3 +37,32 @@ jobs: - uses: actions/upload-artifact@v3 with: path: dist/*.tar.gz + + build_docs: + name: Build documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: pip install .[docs] + + - name: Build documentation + run: python -m sphinx -b html docs public + + - uses: actions/upload-artifact@v3 + with: + path: ./public + + + # Deploy job + deploy: + needs: build_docs + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file