From 84ca72226182e0f2bf0438cb7e64d4e2e24373bd Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 30 Nov 2025 08:49:24 +0100 Subject: [PATCH] ci: use docs on GitHub Pages --- .github/workflows/docs.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1f64177c..5b21ccba 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,9 +28,11 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/master' name: Build and Release Docs permissions: - contents: read - deployments: write - pull-requests: write + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest timeout-minutes: 5 steps: @@ -42,11 +44,9 @@ jobs: uses: go-task/setup-task@v1 - name: Build site run: task docs - - name: Deploy to Cloudflare Pages - uses: cloudflare/wrangler-action@v3 + - name: Upload static files as artifact + uses: actions/upload-pages-artifact@v4 with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy www/public --project-name=${{ secrets.CLOUDFLARE_PROJECT_NAME }} - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - + path: www/public + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4