Deploy to Cloudflare Workers / deploy (push) Successful in 14s
Avoids the outdated-Wrangler warning from the default 3.x install and the risk of hitting deprecated behavior wrangler 3 flags as a critical error. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
722 B
YAML
24 lines
722 B
YAML
name: Deploy to Cloudflare Workers
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # change if your default branch is named differently, e.g. master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Absolute https:// URLs are used here (rather than the bare
|
|
# `actions/checkout@v4` shorthand) so this works regardless of how this
|
|
# Gitea instance has DEFAULT_ACTIONS_URL configured.
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Deploy
|
|
uses: https://github.com/cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
wranglerVersion: "4"
|