diff --git a/.github/workflows/wf-push.yml b/.github/workflows/wf-push.yml index e54f035..9023a3d 100644 --- a/.github/workflows/wf-push.yml +++ b/.github/workflows/wf-push.yml @@ -42,12 +42,11 @@ jobs: name: build-artifacts-${{ matrix.python-version }} path: | dist/ - docs/ deploy-docs: name: Deploy documentation 📚 to GitHub Pages - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/tags' }} needs: - build runs-on: ubuntu-latest @@ -61,11 +60,21 @@ jobs: pages: write steps: - - name: Download docs build artifacts - uses: actions/download-artifact@v6 + - uses: actions/checkout@v3 + + - name: Set up Python 3.12 + uses: actions/setup-python@v3 with: - name: build-artifacts-3.12 - path: docs/ + python-version: 3.12 + + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install Tox + run: pip install tox + + - name: Run Doc + run: tox -e doc - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3