Skip to content

Instantly share code, notes, and snippets.

View dukeflyheli's full-sized avatar

Robert Duke dukeflyheli

View GitHub Profile
@dukeflyheli
dukeflyheli / example-usage.yml
Created February 27, 2026 22:24
used cached wrangler to skip install, saves ~20s
steps:
- name: Deploy preview to Cloudflare Pages
id: deploy
uses: ./wrangler-deploy-action
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name someproject --branch "pr-${{ github.event.pull_request.number }}"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}