diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d944a183a9..f7d4c52cc8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }} SENTRY_DSN: ${{ vars.SENTRY_DSN }} - id: deploy - name: Publish to Cloudflare Pages (Preview) + name: Deploy to Cloudflare uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} @@ -80,9 +80,9 @@ jobs: DEPLOYMENT_URL: ${{ steps.deploy.outputs.url }} run: | curl -X POST \ - -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ - -d '{"state": "success", "target_url": "${{ steps.deploy.outputs.url }}", "description": "GitBook Preview URL", "context": "default"}' \ + -d '{"state": "success", "target_url": "${{ steps.deploy.outputs.url }}", "description": "Deployed Preview URL for commit", "context": "cloudflare/preview"}' \ https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} - name: Find GitHub Comment