Release Candidate Deploy #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Candidate Deploy | |
on: | |
workflow_run: | |
workflows: [CI] | |
types: [completed] | |
branches: [release-candidate] | |
workflow_dispatch: # manual trigger | |
jobs: | |
# runs if CI workflow was successful OR if this was manually triggered | |
on-success: | |
runs-on: ubuntu-22.04 | |
if: > | |
github.event_name == 'workflow_dispatch' || | |
github.event.workflow_run.conclusion == 'success' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: release-candidate | |
- uses: akhileshns/heroku-deploy@79ef2ae4ff9b897010907016b268fd0f88561820 | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: "xpro-rc" | |
heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
branch: release-candidate | |
# runs ONLY on a failure of the CI workflow | |
on-failure: | |
runs-on: ubuntu-22.04 | |
if: > | |
github.event_name == 'workflow_dispatch' || | |
github.event.workflow_run.conclusion == 'failure' | |
steps: | |
- run: echo 'The triggering workflow failed' |