Skip to content

Commit

Permalink
ci: switch back to using wrangler-action and use its output
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqiPan committed Mar 27, 2024
1 parent 50f3e25 commit b16111d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
- name: Publish to Cloudflare Pages
id: publish-to-cloudflare-pages
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
with:
wranglerVersion: '3'
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# Cloudflare account ID is safe to be public
# Ref: https://github.com/cloudflare/wrangler-legacy/issues/209#issuecomment-541654484
accountId: 0c4635effffcd7f36d1b9f0425a4367a
projectName: documentation
directory: dist/
command: pages deploy --project-name=documentation dist/

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

0 comments on commit b16111d

Please sign in to comment.