From 17e80d5b3a6279ca7515d24d96f4ecf1b3593aa7 Mon Sep 17 00:00:00 2001 From: Jerome Guibert Date: Tue, 21 Jan 2025 18:20:28 +0100 Subject: [PATCH] test: doc publish --- .github/workflows/doc.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 5ec3395..4792089 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -9,10 +9,7 @@ on: workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write + # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. @@ -22,7 +19,7 @@ concurrency: jobs: build: - name: Publish doc + name: Build doc runs-on: ubuntu-latest environment: pypi strategy: @@ -41,6 +38,22 @@ jobs: - name: Install dependencies run: make install - name: Build and publish Documentation - run: | - uv run poe docs - uv run poe docs-publish + run: uv run poe docs + - name: Upload static files as artifact + id: deployment + uses: actions/upload-pages-artifact@v3 + with: + path: docs/ + deploy: + needs: build + permissions: + pages: write + id-token: write + 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@v4 \ No newline at end of file