@@ -88,25 +88,25 @@ jobs:
88
88
- name : List all files
89
89
run : ls -lh dist
90
90
91
- - name : Publish distribution 📦 to Test PyPI
92
- # Publish to TestPyPI on tag events of if manually triggered
93
- # Compare to 'true' string as booleans get turned into strings in the console
94
- if : >-
95
- (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96
- || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
91
+ # - name: Publish distribution 📦 to Test PyPI
92
+ # # Publish to TestPyPI on tag events of if manually triggered
93
+ # # Compare to 'true' string as booleans get turned into strings in the console
94
+ # if: >-
95
+ # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96
+ # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
97
+
98
+ # with:
99
+ # repository-url: https://test.pypi.org/legacy/
100
+ # print-hash: true
101
+
102
+ - name : Publish distribution 📦 to PyPI
103
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
97
104
98
105
with :
99
- repository-url : https://test.pypi.org/legacy/
100
106
print-hash : true
101
107
102
108
- name : Create GitHub Release from a Tag
103
109
uses : softprops/action-gh-release@v2
104
110
if : startsWith(github.ref, 'refs/tags/')
105
111
with :
106
112
files : dist/*
107
-
108
- - name : Publish distribution 📦 to PyPI
109
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
110
-
111
- with :
112
- print-hash : true
0 commit comments