More configuration for web app #11
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 backend to staging | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "web/**" | |
- "CHANGELOG.md" | |
concurrency: | |
# If this workflow is already running, cancel it to avoid a scenario | |
# where the older run finishes *after* the newer run and overwrites | |
# the deployment with an older version of the app. | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
name: Deploy to Heroku | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetch history for all branches and tags | |
- name: Install Heroku CLI | |
run: curl https://cli-assets.heroku.com/install.sh | sh | |
- name: Install builds plugin | |
run: heroku plugins:install heroku-builds | |
- name: Build app into tarball | |
run: python setup.py sdist --formats=gztar | |
- name: Create Heroku Build | |
run: heroku builds:create -a linc-staging-terraform --source-tar=dist/$(python setup.py --fullname).tar.gz | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} |