Skip to content

Commit 1160231

Browse files
pointydevsdnts
authored andcommitted
Switch GitHub Action for Cloudflare Pages CI to wrangler-action (cloudflare#22198)
1 parent 061a337 commit 1160231

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
@@ -76,17 +76,16 @@ jobs:
7676
name: Deploy to Cloudflare Pages
7777
steps:
7878
- name: Checkout
79-
uses: actions/checkout@v3
79+
uses: actions/checkout@v4
8080
# Run your project's build step
8181
# - name: Build
8282
# run: npm install && npm run build
83-
- name: Publish
84-
uses: cloudflare/pages-action@v1
83+
- name: Deploy
84+
uses: cloudflare/wrangler-action@v3
8585
with:
8686
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8787
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
88-
projectName: YOUR_PROJECT_NAME # e.g. 'my-project'
89-
directory: YOUR_DIRECTORY_OF_STATIC_ASSETS # e.g. 'dist'
88+
command: pages deploy YOUR_DIRECTORY_OF_STATIC_ASSETS --project-name=YOUR_PROJECT_NAME
9089
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
9190
```
9291

0 commit comments

Comments
 (0)