Skip to content

Commit 0194b34

Browse files
authored
Merge pull request #6 from structured-world/fix/#6-release-build-version
fix(release): pin build version via SETUPTOOLS_SCM_PRETEND_VERSION
2 parents ca4e2ab + ea7d09a commit 0194b34

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ jobs:
4545

4646
- name: Build wheel + sdist
4747
working-directory: ${{ matrix.package.path }}
48-
run: uv run python -m build
48+
run: |
49+
# Force hatch-vcs / setuptools_scm to use the tag version, not dirty-tree dev version
50+
export SETUPTOOLS_SCM_PRETEND_VERSION="${GITHUB_REF_NAME#v}"
51+
uv run python -m build
4952
5053
- name: Upload dist artifact
5154
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4

0 commit comments

Comments
 (0)