trying apply #124
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: Deploy Obos to Heroku | |
on: | |
push: | |
branches: | |
- master | |
env: | |
HEROKU_APP_NAME: td-obos | |
jobs: | |
deploy-obos: | |
name: Deploy Obos to heroku | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '[deploy-obos]')" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install Heroku CLI | |
run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh | |
- name: Login to Heroku Container registry | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: heroku container:login | |
- name: Push Obos Container | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: heroku container:push -a $HEROKU_APP_NAME web | |
working-directory: ./Ouroboros/ | |
- name: Release Obos Container | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: heroku container:release -a $HEROKU_APP_NAME web | |
working-directory: ./Ouroboros/ |