From cfc03ae2f86dd5f6ba6026c593a2ce5cf1dd7cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Fontana?= Date: Wed, 22 Oct 2025 23:40:56 -0400 Subject: [PATCH] fix(docs): publish doc to repository github page --- .github/workflows/ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c504df3..afe08ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,13 @@ jobs: docs: runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v5 @@ -65,4 +72,18 @@ jobs: - name: Build documentation run: uv run mkdocs build --strict - continue-on-error: true + + - name: Setup Pages + if: github.ref == 'refs/heads/main' + uses: actions/configure-pages@v5 + + - name: Upload artifact + if: github.ref == 'refs/heads/main' + uses: actions/upload-pages-artifact@v3 + with: + path: ./site + + - name: Deploy to GitHub Pages + if: github.ref == 'refs/heads/main' + id: deployment + uses: actions/deploy-pages@v4