Skip to content

Commit 4d7e5d7

Browse files
fix(ci): replace deprecated pages-action with wrangler-action
cloudflare/pages-action@v1 uses wrangler v2 which is EOL and returns 502 from the Cloudflare API. Switch to cloudflare/wrangler-action@v3 which uses current wrangler versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 289585d commit 4d7e5d7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040
run: hugo --minify
4141

4242
- name: Deploy to Cloudflare Pages
43-
uses: cloudflare/pages-action@v1
43+
uses: cloudflare/wrangler-action@v3
4444
with:
4545
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4646
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
47-
projectName: devrail-dev
48-
directory: public
47+
command: pages deploy public --project-name=devrail-dev
4948

5049
# Required secrets (configure in GitHub repository settings):
5150
# CLOUDFLARE_API_TOKEN - Cloudflare API token with Pages edit permission

0 commit comments

Comments
 (0)