Skip to content

Commit bfdff35

Browse files
committed
feat: add wrangler triggers deploy for crons/routes
1 parent 7921db6 commit bfdff35

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ runs:
532532
# Deploy the version at 100%
533533
npx wrangler versions deploy "${VERSION_ID}@100%" --name "${{ inputs.worker-name }}" -y
534534
535+
# Deploy triggers (routes, custom domains, cron schedules)
536+
npx wrangler triggers deploy --name "${{ inputs.worker-name }}" --cwd .output
537+
535538
- name: Upload secrets to Cloudflare
536539
if: ${{ (inputs.mode == 'full' || inputs.mode == 'deploy') && inputs.secrets-json != '' && inputs.secrets-json != '{}' }}
537540
shell: bash

0 commit comments

Comments
 (0)