Skip to content

Commit fd5fa3e

Browse files
Fetches all tags when publishing a new release
2 parents 3f0872f + 16530a9 commit fd5fa3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
ref: ${{ github.event.release.tag_name }}
21-
fetch-depth: 0 # required for setuptools-scm to resolve version from tag
21+
fetch-depth: 0 # required for setuptools-scm to resolve version from tag
22+
fetch-tags: true # explicitly fetch all tags so setuptools-scm finds the release tag
2223

2324
- name: Install uv
2425
uses: astral-sh/setup-uv@v6

0 commit comments

Comments
 (0)