Skip to content

Commit a5ab346

Browse files
committed
Add workflow dispatch to workflow
1 parent 62964bb commit a5ab346

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deploy.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on:
99
branches:
1010
- main
1111
- develop
12+
workflow_dispatch: # Enables manual triggering
1213

1314
jobs:
1415
deploy-to-production:
15-
if: github.ref == 'refs/heads/main'
16+
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Deploy to production
@@ -23,12 +24,12 @@ jobs:
2324
wait-for-success: true
2425

2526
deploy-to-develop:
26-
if: github.ref == 'refs/heads/develop'
27+
if: github.ref == 'refs/heads/develop' || github.event_name == 'workflow_dispatch'
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: Deploy to develop
3031
uses: johnbeynon/[email protected]
3132
with:
3233
service-id: ${{ secrets.STAGING_RENDER_SERVICE_ID }}
3334
api-key: ${{ secrets.STAGING_RENDER_API_KEY }}
34-
wait-for-success: true
35+
wait-for-success: true

0 commit comments

Comments
 (0)