Skip to content

Commit d68dfd7

Browse files
committed
Switch GitHub Action for Cloudflare Pages CI to wrangler-action
1 parent 5e302d0 commit d68dfd7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/content/docs/pages/how-to/use-direct-upload-with-continuous-integration.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,16 @@ jobs:
7272
name: Deploy to Cloudflare Pages
7373
steps:
7474
- name: Checkout
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676
# Run your project's build step
7777
# - name: Build
7878
# run: npm install && npm run build
79-
- name: Publish
80-
uses: cloudflare/pages-action@v1
79+
- name: Deploy
80+
uses: cloudflare/wrangler-action@v3
8181
with:
8282
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8383
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
84-
projectName: YOUR_PROJECT_NAME # e.g. 'my-project'
85-
directory: YOUR_DIRECTORY_OF_STATIC_ASSETS # e.g. 'dist'
84+
command: pages deploy YOUR_DIRECTORY_OF_STATIC_ASSETS --project-name=YOUR_PROJECT_NAME
8685
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
8786
```
8887

0 commit comments

Comments
 (0)