Skip to content

Commit 20eec88

Browse files
authored
Revert "ci(pypi): use ‹fetch-tags› from ‹actions/checkout›" (#464)
This reverts commit c93c042.
2 parents 0cfb153 + e60229b commit 20eec88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pypi-publish.yml

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

2423
- uses: actions/setup-python@v5
2524

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+
2630
- name: Build a source tarball and a binary wheel
2731
# https://pypa-build.readthedocs.io
2832
run: |

0 commit comments

Comments
 (0)