Skip to content

temporarily comment out reset-release-branch job in backend-productio… #2

temporarily comment out reset-release-branch job in backend-productio…

temporarily comment out reset-release-branch job in backend-productio… #2

name: Deploy backend to production
on:
push:
branches:
- staging
paths-ignore:
- "web/**"
- "CHANGELOG.md"
# TODO: revert back; only for testing!
# release:
# types: [released]
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:
# reset-release-branch:
# name: Update release branch
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0 # fetch history for all branches and tags
# token: ${{ secrets.GH_TOKEN }} # use PAT with permissions to push to master
# ref: release
# - name: Perform reset
# run: |
# git reset --hard ${{ github.ref }}
# git push --force origin release
production-deploy:

Check failure on line 37 in .github/workflows/backend-production-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy backend to production

Invalid workflow file

The workflow is not valid. .github/workflows/backend-production-deploy.yml (Line: 37, Col: 3): The workflow must contain at least one job with no dependencies.
name: Deploy to Heroku
runs-on: ubuntu-22.04
needs: reset-release-branch
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch history for all branches and tags
ref: release
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- 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: |
pip install build
python -m build --sdist
- name: Create Heroku Build
run: heroku builds:create -a dandi-api --source-tar dist/*.tar.gz
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}