v1.0.0 #2
Workflow file for this run
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
# https://www.trywilco.com/post/wilco-ci-cd-github-heroku | ||
name: Continuous Deployment | ||
# This action works when creating a tag or release | ||
on: | ||
release: | ||
types: | ||
- "released" | ||
push: | ||
tags: | ||
- "release-*" | ||
- "rollback-*" | ||
jobs: | ||
deploy-production: | ||
needs: | ||
- ci-checks | ||
- lint | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: akhileshns/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
heroku_app_name: "<your app name here>" | ||
heroku_email: "<your email address>" | ||
team: "<team name>" | ||
dontautocreate: true # do not create the app if it doesn't exist |