Update heroku-deploy.yml #5
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
# Heroku login and deploy workflow | ||
# Requires | ||
# - GitHub secrets with Heroku credentials | ||
# - Access to the makefile | ||
name: "Login Heroku and Deploy" | ||
on: [ workflow_call ] | ||
jobs: | ||
login-deploy: | ||
name: login-and-deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: login | ||
run: | | ||
cat <<EOF > ~/.netrc | ||
machine api.heroku.com | ||
login ${{ secrets.HEROKU_EMAIL }} | ||
password ${ secrets.HEROKU_API_KEY } | ||
machine git.heroku.com | ||
login ${{ secrets.HEROKU_EMAIL }} | ||
password ${{ secrets.HEROKU_API_KEY }} | ||
EOF | ||
- name: heroku-push | ||
run: | | ||
make heroku_push | ||
- name: heroku-release | ||
run: | | ||
make heroku_release |