Skip to content

Commit

Permalink
ci: update branch deployed to heroku (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dukedegen authored Nov 19, 2021
1 parent f0e15e1 commit e823e89
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,37 +64,20 @@ jobs:
- name: Push new branch
run: git push origin ${{ env.RELEASE_BRANCH }}

create-pull-request:
runs-on: ubuntu-latest
needs: [create-release-branch]
if: ${{ startsWith(github.ref_name, 'release/') }}
env:
RELEASE_BRANCH: ${{ needs.create-release-branch.outputs.release_branch }}
steps:
- uses: actions/checkout@v2
with:
ref: main
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
branch: ${{ env.RELEASE_BRANCH }}
base: main
title: 'hotfix: ${{ env.RELEASE_BRANCH }}'
body: 'This pull request is automatically generated when a hotfix is deployed
to a release branch. Merge this pull request to include the hotfix
in the main branch.'

deploy-production:
runs-on: ubuntu-latest
environment: prd
needs: [create-release-branch]
env:
RELEASE_BRANCH: ${{ needs.create-release-branch.outputs.release_branch }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ needs.create-release-branch.outputs.release_branch }}
ref: ${{ env.RELEASE_BRANCH }}
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_APP_NAME}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
buildpack: https://github.com/mars/create-react-app-buildpack.git
buildpack: https://github.com/mars/create-react-app-buildpack.git
branch: ${{ env.RELEASE_BRANCH }}

0 comments on commit e823e89

Please sign in to comment.