Skip to content

Commit b6451cb

Browse files
committed
fix: cloudflare deployment
1 parent 069a547 commit b6451cb

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/publish_website.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,9 @@ jobs:
5959
PUBLIC_GTAG: ${{ secrets.PUBLIC_GTAG }}
6060

6161
- name: Publish to Cloudflare Pages
62-
uses: cloudflare/pages-action@v1.5.0
62+
uses: cloudflare/wrangler-action@v3
6363
with:
6464
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6565
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
66-
projectName: ${{ secrets.CLOUDFLARE_PAGES_PROJECT_NAME }}
67-
directory: dist/client
68-
# Optional: Enable this if you want to have GitHub Deployments triggered
69-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
70-
# Optional: Switch what branch you are publishing to.
71-
# By default, this will be the branch which triggered this workflow
72-
branch: main
73-
# Optional: Change the working directory
66+
command: pages deploy dist/client --project-name=${{ secrets.CLOUDFLARE_PAGES_PROJECT_NAME }} --branch=main
7467
workingDirectory: website
75-
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
76-
wranglerVersion: '3'
77-

0 commit comments

Comments
 (0)