diff --git a/.github/workflows/backend-staging-deploy.yml b/.github/workflows/backend-staging-deploy.yml index 059745fe5..157a6691d 100644 --- a/.github/workflows/backend-staging-deploy.yml +++ b/.github/workflows/backend-staging-deploy.yml @@ -11,7 +11,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - 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 @@ -20,9 +22,7 @@ jobs: run: heroku plugins:install heroku-builds - name: Build app into tarball - run: | - git fetch --prune --unshallow --tags - python setup.py sdist --formats=gztar + 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 diff --git a/.github/workflows/update-release-branch.yml b/.github/workflows/update-release-branch.yml index 2132b5362..4582e0371 100644 --- a/.github/workflows/update-release-branch.yml +++ b/.github/workflows/update-release-branch.yml @@ -34,9 +34,7 @@ jobs: run: heroku plugins:install heroku-builds - name: Build app into tarball - run: | - git fetch --prune --unshallow --tags - python setup.py sdist --formats=gztar + run: python setup.py sdist --formats=gztar - name: Create Heroku Build run: heroku builds:create -a dandi-api --source-tar=dist/$(python setup.py --fullname).tar.gz