Skip to content

Commit 3f2c1b3

Browse files
committed
Update workflow to allow manual prod releases via input
The build_and_deploy_job in azure-static-web-app.yml now runs if the prod_release input is true, or for open pull requests. This enables manual triggering of production releases in addition to the existing PR-based deployment behavior.
1 parent 2626466 commit 3f2c1b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/azure-static-web-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
build_and_deploy_job:
21-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
21+
if: ${{ inputs.prod_release }} || (github.event_name == 'pull_request' && github.event.action != 'closed')
2222
runs-on: ubuntu-latest
2323
env:
2424
DOTNET_VERSION: "net10.0"

0 commit comments

Comments
 (0)