Skip to content

Commit 5eebc6c

Browse files
committed
Revert "ci(pypi): use ‹fetch-tags› from ‹actions/checkout›"
This reverts commit 4432979.
1 parent 2059ce7 commit 5eebc6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pypi-publish.yml

+5-1
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)