Open mattfranciswork0 opened 3 years ago
This does note seems to be an issue, 🤔 but here's the way I will do what you are asking.
I will copy paste the file you are providing & just change the target branch. Meaning that you will have to deployment files on your repo, one for main
and the other for develop
Following the example you are using:
name: Deploy To Develop Branch
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "gh-actions-uat" #Must be unique in Heroku
heroku_email: "a888@gmail.com"
Hopping this help anyone 👍
Here is how I am pushing it to my heroku app when I make changes on main. How do I deploy it to a different Heroku app (named gh-actions-uat) when I make changes on the development branch?