Commit eefd61d
authored
Added deployment trigger (#85)
Added deployment trigger to deploy to Azure Static Webapps
This pull request introduces updates to the deployment workflows, mainly
to improve consistency in environment naming and to automate deployments
upon pull request merges. The most important changes are grouped below:
**Workflow Automation:**
* Added a new workflow `.github/workflows/trigger-deploy-on-merge.yml`
that triggers the deployment process automatically when a pull request
is merged into one of the main branches (`develop`, `staging`,
`production`, or `testing`).
**Environment Naming Consistency:**
* Changed the default environment input in
`.github/workflows/deploy-to-azure.yml` from `development` to `develop`
to match branch naming conventions.
* Updated the environment mapping in the deployment workflow to use
`develop` instead of `development`.
**Deployment Parameter Improvements:**
* Added a new parameter `production_branch` to the deploy-to-azure
workflow, set to the selected environment.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary
- Added an automated Azure Static Web Apps deployment trigger for merged
pull requests targeting `develop`, `staging`, `production`, or
`testing`.
- Renamed the default deployment environment from `development` to
`develop` and updated its mapping.
- Added `production_branch` configuration using the selected deployment
environment.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->2 files changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments