File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 91
91
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
92
92
# alternatively, to publish when a GitHub Release is created, use the following rule:
93
93
# if: github.event_name == 'release' && github.event.action == 'published'
94
+
95
+ environment :
96
+ name : pypi
97
+ url : https://pypi.org/p/soxr
98
+ permissions :
99
+ contents : write
100
+ id-token : write # IMPORTANT: mandatory for trusted publishing
101
+
94
102
steps :
95
103
- uses : actions/download-artifact@v4
96
104
with :
@@ -99,16 +107,11 @@ jobs:
99
107
merge-multiple : true
100
108
101
109
- uses : softprops/action-gh-release@v2
102
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
103
110
with :
104
111
files : |
105
112
dist/*.tar.gz
106
113
dist/*.whl
107
114
108
115
- uses : pypa/gh-action-pypi-publish@release/v1
109
- with :
110
- user : __token__
111
- password : ${{ secrets.PYPI_API_TOKEN }}
112
- # To test
113
- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
114
- # repository_url: https://test.pypi.org/legacy/
116
+ # with:
117
+ # repository_url: https://test.pypi.org/legacy/ # To test
You can’t perform that action at this time.
0 commit comments