Skip to content

Commit f2a973d

Browse files
committed
ci: deploy staging on merge to main
1 parent 2a6c6b6 commit f2a973d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Deploy Staging
22

33
on:
4+
push:
5+
branches:
6+
- main
47
workflow_dispatch:
58
inputs:
69
ref:

.github/workflows/wrangler-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
SITE_URL: ${{ inputs.site_url }}
4343

4444
- name: Deploy to Cloudflare
45-
run: pnpm wrangler deploy --env ${{ inputs.environment }}
45+
run: pnpm wrangler deploy --env ${{ inputs.environment }} --message "Deployed from Actions"
4646
env:
4747
CLOUDFLARE_API_TOKEN: ${{ secrets.cloudflare_api_token }}
4848
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.cloudflare_account_id }}

0 commit comments

Comments
 (0)