Skip to content

Commit

Permalink
Merge pull request #390 from microbiomedata/issue-357-full-checkout
Browse files Browse the repository at this point in the history
Do full depth checkout so setuptools-scm can detect version
  • Loading branch information
eecavanna authored Nov 20, 2023
2 parents f0c7677 + e36c011 commit d64f6ad
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-release-to-spin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on:
- '**.py'
- 'requirements/main.txt'

env:
IS_PROD_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}

jobs:
setup-variables:
runs-on: ubuntu-latest
Expand All @@ -26,6 +23,9 @@ jobs:
echo "RANCHER_NAMESPACE=${{ startsWith(github.ref, 'refs/tags/v') && 'nmdc' || 'nmdc-dev' }}" >> "$GITHUB_ENV"
build:
needs:
- setup-variables

runs-on: ubuntu-latest

strategy:
Expand All @@ -35,6 +35,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# history for all branches and tags is needed for setuptools-scm (part of build and push step)
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -69,7 +72,9 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

release:
needs: build
needs:
- setup-variables
- build

runs-on: ubuntu-latest

Expand Down

0 comments on commit d64f6ad

Please sign in to comment.