File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 26
26
contents : read
27
27
deployments : write
28
28
29
- # define environments
30
29
strategy :
31
30
matrix :
32
31
include :
42
41
vite_keycloak_url : ${{ vars.VITE_KEYCLOAK_URL_DOCKER }}
43
42
vite_keycloak_realm : ' dev'
44
43
vite_keycloak_client_id : ' bff-dashboard'
45
-
46
- # only run job for the selected environment on manual dispatch or on push to a tag
47
- if : |
48
- github.event_name == 'push' ||
49
- (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == matrix.environment)
50
44
51
45
steps :
52
46
- name : Checkout repository
55
49
ref : ${{ github.ref }}
56
50
fetch-depth : 0
57
51
58
- # only allow tags on manual dispatch
59
52
- name : Validate Tag on Manual Dispatch
60
53
if : github.event_name == 'workflow_dispatch'
61
54
run : |
94
87
95
88
- name : Deploy ${{ matrix.environment }} to Cloudflare Pages (PRODUCTION)
96
89
id : deploy_production
97
- if : github.event_name == 'workflow_dispatch'
90
+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == matrix.environment
98
91
uses : cloudflare/wrangler-action@v3
99
92
with :
100
93
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
101
94
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
102
- # Target the production branch ('main' or 'master') for manual deployments
103
95
command : pages deploy dist --project-name=${{ matrix.project_name }} --branch=master
You can’t perform that action at this time.
0 commit comments