Skip to content

Commit ae28b8a

Browse files
committed
Fix publish workflow
1 parent 06a01f9 commit ae28b8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ jobs:
3737
# We only need the project dependencies, no development deps
3838
uv sync --no-default-groups
3939
40+
# This is necessary for git describe to work properly
41+
- name: Fetch git tags
42+
run: git fetch --tags
43+
4044
- name: Make sure pyproject.toml version matches git version
4145
run: |
4246
git_version=$(git describe)
4347
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
4448
45-
if [ "$git_verson" != "$pyproject_version" ]; then
49+
if [ "$git_version" != "$pyproject_version" ]; then
4650
echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
4751
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
4852
echo "You can fix this by updating the pyproject version and overwriting the git tag"

0 commit comments

Comments
 (0)