File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -150,3 +150,53 @@ jobs:
150
150
replacesArtifacts : true
151
151
makeLatest : true
152
152
artifactErrorsFailBuild : true
153
+
154
+ build_sdist :
155
+
156
+ name : Build source distribution
157
+
158
+ runs-on : ubuntu-latest
159
+
160
+ steps :
161
+
162
+ - uses : actions/checkout@v3
163
+ - uses : actions/setup-python@v4
164
+ with :
165
+ python-version : ' 3.11'
166
+
167
+ - name : Build sdist
168
+ run : pipx run build --sdist
169
+
170
+ - uses : actions/upload-artifact@v4
171
+ with :
172
+ path : dist/*.tar.gz
173
+ name : build_artifact-sdist
174
+
175
+ upload_pypi :
176
+
177
+ needs : [build, build_sdist]
178
+
179
+ if : github.event_name != 'pull_request'
180
+
181
+ runs-on : ubuntu-latest
182
+
183
+ environment : pypi
184
+
185
+ permissions :
186
+ id-token : write
187
+
188
+ steps :
189
+
190
+ - uses : actions/download-artifact@v4
191
+ with :
192
+ pattern : build_artifact-*
193
+ path : dist
194
+ merge-multiple : true
195
+
196
+ - uses : pypa/gh-action-pypi-publish@release/v1
197
+ with :
198
+ repository-url : https://test.pypi.org/legacy/
199
+ user : __token__
200
+ password : ${{ secrets.TEST_PYPI_PASSWORD }}
201
+ skip-existing : false
202
+ verbose : true
You can’t perform that action at this time.
0 commit comments