Skip to content

Commit 9973605

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
26+
with:
27+
# Fetch the entire git history (all branches + tags)
28+
# We do this because the docs use git describe, which requires having all
29+
# the annotated tags fetched
30+
fetch-depth: 0
2631

2732
- name: Setup uv
2833
uses: astral-sh/setup-uv@v5
@@ -42,7 +47,7 @@ jobs:
4247
git_version=$(git describe)
4348
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
4449
45-
if [ "$git_verson" != "$pyproject_version" ]; then
50+
if [ "$git_version" != "$pyproject_version" ]; then
4651
echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
4752
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
4853
echo "You can fix this by updating the pyproject version and overwriting the git tag"

0 commit comments

Comments
 (0)