File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,39 @@ jobs:
105
105
name : python-package-distributions
106
106
path : dist/ugropy-${{ matrix.os }}-${{ matrix.python-version }}/
107
107
108
+ publish-to-testpypi :
109
+ name : Publish Python 🐍 distribution 📦 to TestPyPI
110
+ needs :
111
+ - build
112
+ runs-on : ubuntu-latest
113
+
114
+ environment :
115
+ name : testpypi
116
+ url : https://test.pypi.org/p/ugropy
117
+
118
+ permissions :
119
+ id-token : write # IMPORTANT: mandatory for trusted publishing
120
+
121
+ steps :
122
+ - name : Download all the dists
123
+ uses : actions/download-artifact@v4
124
+ with :
125
+ name : python-package-distributions
126
+ path : dist/
127
+ pattern : ugropy-*
128
+ merge-multiple : true
129
+ - name : Publish distribution 📦 to TestPyPI
130
+ uses : pypa/gh-action-pypi-publish@release/v1
131
+ with :
132
+ repository-url : https://test.pypi.org/legacy/
133
+ skip-existing : true
134
+
108
135
publish_to_pypi :
109
136
name : Publish Python 🐍 wheels 🛞 to PyPI
110
137
if : github.event_name == 'release'
111
138
needs :
112
139
- build
140
+ - publish-to-testpypi
113
141
runs-on : ubuntu-latest
114
142
environment :
115
143
name : pypi
You can’t perform that action at this time.
0 commit comments