Skip to content

Commit c93c042

Browse files
committed
ci(pypi): use ‹fetch-tags› from ‹actions/checkout›
Signed-off-by: Matej Focko <[email protected]>
1 parent 475c49e commit c93c042

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
with:
21+
fetch-tags: true
2122
persist-credentials: false
2223

2324
- uses: actions/setup-python@v5
2425

25-
- name: Get history and tags for SCM versioning to work
26-
run: |
27-
git fetch --prune --unshallow
28-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
29-
3026
- name: Build a source tarball and a binary wheel
3127
# https://pypa-build.readthedocs.io
3228
run: |

0 commit comments

Comments
 (0)