Skip to content

Commit b16111d

Browse files
committed
ci: switch back to using wrangler-action and use its output
1 parent 50f3e25 commit b16111d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-deploy-doc.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
4848
- name: Publish to Cloudflare Pages
4949
id: publish-to-cloudflare-pages
50-
uses: cloudflare/pages-action@v1
50+
uses: cloudflare/wrangler-action@v3
5151
with:
52-
wranglerVersion: '3'
5352
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
53+
# Cloudflare account ID is safe to be public
54+
# Ref: https://github.com/cloudflare/wrangler-legacy/issues/209#issuecomment-541654484
5455
accountId: 0c4635effffcd7f36d1b9f0425a4367a
55-
projectName: documentation
56-
directory: dist/
56+
command: pages deploy --project-name=documentation dist/
5757

5858
- name: Comment with preview URL
5959
uses: actions/github-script@v7
@@ -63,5 +63,5 @@ jobs:
6363
issue_number: context.issue.number,
6464
owner: context.repo.owner,
6565
repo: context.repo.repo,
66-
body:${{ steps.publish-to-cloudflare-pages.outputs.url }}
66+
body: 'Cloudflare Pages Preview URL: ${{ steps.publish-to-cloudflare-pages.outputs.deployment-url }}'
6767
})

0 commit comments

Comments
 (0)