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 2626 contents : read
2727 deployments : write
2828
29- # define environments
3029 strategy :
3130 matrix :
3231 include :
4241 vite_keycloak_url : ${{ vars.VITE_KEYCLOAK_URL_DOCKER }}
4342 vite_keycloak_realm : ' dev'
4443 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)
5044
5145 steps :
5246 - name : Checkout repository
5549 ref : ${{ github.ref }}
5650 fetch-depth : 0
5751
58- # only allow tags on manual dispatch
5952 - name : Validate Tag on Manual Dispatch
6053 if : github.event_name == 'workflow_dispatch'
6154 run : |
9487
9588 - name : Deploy ${{ matrix.environment }} to Cloudflare Pages (PRODUCTION)
9689 id : deploy_production
97- if : github.event_name == 'workflow_dispatch'
90+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == matrix.environment
9891 uses : cloudflare/wrangler-action@v3
9992 with :
10093 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
10194 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
102- # Target the production branch ('main' or 'master') for manual deployments
10395 command : pages deploy dist --project-name=${{ matrix.project_name }} --branch=master
You can’t perform that action at this time.
0 commit comments