Skip to content

Commit e43ac97

Browse files
committed
fix: ensure code is checked out and the built package is properly named in release-python.yml
1 parent 4f97355 commit e43ac97

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

{{cookiecutter.project_name}}/.github/workflows/release-python.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343
steps:
4444
- name: Checkout code
4545
uses: actions/checkout@v4
46-
with:
47-
ref: {{"${{ github.event_name == 'push' && github.ref || github.event.inputs.tag }}"}}
4846

4947
- name: Set up uv
5048
uses: astral-sh/setup-uv@v6
@@ -60,7 +58,7 @@ jobs:
6058
- name: Upload built package artifacts
6159
uses: actions/upload-artifact@v4
6260
with:
63-
name: distribution-packages
61+
name: distribution-packages-{{ "${{ needs.get_tag.outputs.tag }}" }}
6462
path: dist/
6563
retention-days: 7
6664

@@ -82,11 +80,8 @@ jobs:
8280
needs: build_and_testpypi
8381

8482
steps:
85-
- name: Download package artifacts
86-
uses: actions/download-artifact@v4
87-
with:
88-
name: distribution-packages
89-
path: dist/
83+
- name: Checkout code
84+
uses: actions/checkout@v4
9085

9186
- name: Set up Python
9287
uses: actions/setup-python@v5
@@ -96,6 +91,12 @@ jobs:
9691
- name: Set up uv
9792
uses: astral-sh/setup-uv@v6
9893

94+
- name: Download package artifacts
95+
uses: actions/download-artifact@v4
96+
with:
97+
name: distribution-packages-{{ "${{ needs.build_and_testpypi.outputs.tag }}" }}
98+
path: dist/
99+
99100
- name: Create Tag
100101
run: |
101102
git tag {{ "${{ needs.build_and_testpypi.outputs.tag }}" }}

0 commit comments

Comments
 (0)