Skip to content

Deploy to Heroku

Deploy to Heroku #42

name: Deploy to Heroku
on:
workflow_run:
workflows:
- Sync Deploy Branch
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "accountability" # Must be unique in Heroku
heroku_email: "[email protected]"
fail:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo "Couldn't deploy since 'Sync Deploy Branch' failed"