Skip to content

Commit 48ffeaa

Browse files
committed
Fix release workflow tagging
1 parent 5556169 commit 48ffeaa

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ jobs:
4141
- name: Build project
4242
run: uv build
4343

44-
- name: Create release tag
45-
run: |
46-
git config --local user.email "action@github.com"
47-
git config --local user.name "GitHub Action"
48-
git tag -a "v${{ github.event.inputs.version }}" -m "Version ${{ github.event.inputs.version }}"
49-
git push origin "v${{ github.event.inputs.version }}"
50-
5144
- name: Upload wheels
5245
uses: actions/upload-artifact@v4
5346
with:
@@ -65,6 +58,19 @@ jobs:
6558
id-token: write
6659
contents: write # Needed for tagging
6760
steps:
61+
- name: Checkout code
62+
uses: actions/checkout@v4
63+
with:
64+
fetch-tags: true
65+
fetch-depth: 100
66+
67+
- name: Create release tag
68+
run: |
69+
git config --local user.email "action@github.com"
70+
git config --local user.name "GitHub Action"
71+
git tag -a "v${{ github.event.inputs.version }}" -m "Version ${{ github.event.inputs.version }}"
72+
git push origin "v${{ github.event.inputs.version }}"
73+
6874
- name: Download wheels
6975
uses: actions/download-artifact@v4
7076
with:

0 commit comments

Comments
 (0)