Skip to content

Commit f32ee93

Browse files
committed
Create the release after publishing to test pypi
1 parent 0d8b2c6 commit f32ee93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ jobs:
8787
- name: List all files
8888
run: ls -lh dist
8989

90-
- name: Create GitHub Release from a Tag
91-
uses: softprops/action-gh-release@v1
92-
if: startsWith(github.ref, 'refs/tags/')
93-
with:
94-
files: dist/*
95-
9690
- name: Publish distribution 📦 to Test PyPI
9791
# Publish to TestPyPI on tag events of if manually triggered
9892
# Compare to 'true' string as booleans get turned into strings in the console
@@ -104,6 +98,12 @@ jobs:
10498
repository-url: https://test.pypi.org/legacy/
10599
print-hash: true
106100

101+
- name: Create GitHub Release from a Tag
102+
uses: softprops/action-gh-release@v1
103+
if: startsWith(github.ref, 'refs/tags/')
104+
with:
105+
files: dist/*
106+
107107
- name: Publish distribution 📦 to PyPI
108108
if: github.event_name == 'release' && github.event.action == 'published'
109109
uses: pypa/gh-action-pypi-publish@v1.8.10

0 commit comments

Comments
 (0)