Skip to content

Commit

Permalink
Refactor deployment workflows for different branches
Browse files Browse the repository at this point in the history
- Update the branch filter in `.github/workflows/deploy-to-cb.yml` to only trigger on the `dev` branch.
- Update the branch filter in `.github/workflows/deploy-to-heroku.yml` to only trigger on the `master` branch.
- Modify the matrix of app names in both workflows.

These changes ensure that deployments are triggered correctly based on the respective branches.
  • Loading branch information
donfn committed Feb 14, 2024
1 parent 4390979 commit 1ad2863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-to-cb.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Deploy to Heroku

on:
push: ["main"]
push:
branches:
- dev
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
app_name: ['unistudents-prod-1', 'unistudents-prod-4', 'unistudents-prod-5', 'unistudents-prod-6']
app_name: [ 'unistudents-uat' ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-to-heroku.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Deploy to Heroku

on:
push: ["dev"]
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
app_name: ['unistudents-uat']
app_name: ['unistudents-prod-1', 'unistudents-prod-4', 'unistudents-prod-5', 'unistudents-prod-6']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 1ad2863

Please sign in to comment.