Skip to content

Commit 47b74f3

Browse files
committed
release action: move building package earlier to avoid creating tag on failure
1 parent 8a86f96 commit 47b74f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
field: project.version
3232
id: get_current_version
3333

34+
- name: Build Python Package
35+
run: rm -rf build *.egg-info/ && python3 -m build
36+
3437
- name: Create Tag
3538
uses: mathieudutour/[email protected]
3639
with:
@@ -50,9 +53,6 @@ jobs:
5053
body: ${{steps.build_changelog.outputs.changelog}}
5154
token: ${{ secrets.GH_API_SECRET }}
5255

53-
- name: Build Python Package
54-
run: rm -rf build *.egg-info/ && python3 -m build
55-
5656
- name: Publish to PyPi
5757
uses: pypa/[email protected]
5858
with:

0 commit comments

Comments
 (0)