Commit c82f4b0
committed
fix(ci): ensure proper version in PyPI releases
Fix release workflow to properly resolve version from git tags instead
of defaulting to 0.0.0. The issue occurred because actions/checkout@v4
requires explicit tag fetching, unlike the older v2 used in upstream.
Changes:
- Add ref: ${{ github.ref }} to checkout the exact release tag
- Add fetch-tags: true to explicitly fetch all tags for setuptools_scm
This ensures setuptools_scm can properly determine the version from
git tags (e.g., v1.12.2.4-beta3 → 1.12.2.4b3) instead of falling back
to version 0.0.0.
Related: Previous releases incorrectly published as version 0.0.01 parent a1dd29d commit c82f4b0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments