Skip to content

Commit 4cf4e97

Browse files
committed
Trusted publishing is a pain
1 parent 35df8d9 commit 4cf4e97

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/publish-to-testpypi.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v6
1414
with:
15-
fetch-tags: true
1615
persist-credentials: false
1716

1817
- name: Fetch tags
1918
run: git fetch --tags origin
2019

20+
- name: DEBUG Check tag
21+
run: git rev-list --tags --max-count=1
22+
23+
- name: DEBUG Check tag date
24+
run: git show -s --format='%as' $(git rev-list --tags --max-count=1)
25+
26+
- name: Fetch old commits
27+
run: git fetch --shallow-since=$(git show -s --format='%as' $(git rev-list --tags --max-count=1)) origin
28+
2129
- name: Set up Python
2230
uses: actions/setup-python@v6
2331
with:

0 commit comments

Comments
 (0)