Skip to content

Merge pull request #1663 from dandi/throttle-messages #420

Merge pull request #1663 from dandi/throttle-messages

Merge pull request #1663 from dandi/throttle-messages #420

name: Deploy backend to staging
on:
push:
branches:
- master
paths-ignore:
- "web/**"
jobs:
deploy:
name: Deploy to Heroku
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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 dandi-api-staging --source-tar=dist/$(python setup.py --fullname).tar.gz
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}