ci: add Heroku CLI installation step to deployment workflow #36
This file contains hidden or 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: Deploy to Heroku | |
on: | |
push: | |
branches: | |
- feature/heroku | |
jobs: | |
test: | |
uses: ./.github/workflows/ci.yml | |
deploy: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Heroku CLI | |
run: | | |
curl https://cli-assets.heroku.com/install.sh | sh | |
- name: Deploy to Heroku | |
uses: akhileshns/heroku-deploy@v3.12.14 | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: "github-commit-monitor" | |
heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
- name: Set Heroku config vars | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: | | |
heroku config:set MY_GITHUB_SECRET=${{ secrets.MY_GITHUB_SECRET }} -a github-commit-monitor | |
heroku config:set CHANNEL_ID=${{ secrets.CHANNEL_ID }} -a github-commit-monitor | |
heroku config:set APP_URL=https://github-commit-monitor-4a53c549b932.herokuapp.com/ -a github-commit-monitor |