File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,18 @@ jobs:
5252 git describe --exact-match HEAD || (echo "::error::HEAD is not exactly on tag ${{ github.ref_name }}"; exit 1)
5353 echo "Building version from tag: ${{ github.ref_name }}"
5454
55+ # Force version from tag; hatch-vcs/setuptools-scm can yield next_version.dev0 when
56+ # they don't detect exact tag (e.g. in isolated build env), so we pin the version.
57+ - name : Set version from tag for build
58+ id : set_version
59+ run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
60+
5561 - name : Clean previous builds
5662 run : git clean -xfd dist build *.egg-info || true
5763
5864 - name : Build package
65+ env :
66+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TABPFN_COMMON_UTILS : ${{ steps.set_version.outputs.version }}
5967 run : uv run python -m build
6068
6169 - name : Upload build artifacts
You can’t perform that action at this time.
0 commit comments