File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 3
3
branches :
4
4
- main
5
5
- develop
6
+ release :
7
+ types : [created]
6
8
pull_request :
7
9
8
10
jobs :
@@ -241,3 +243,32 @@ jobs:
241
243
run : |
242
244
export PATH=~/castxml/bin:$PATH
243
245
pytest tests
246
+
247
+ build-release :
248
+ name : Build distribution 📦
249
+ if : (github.event_name == 'release' && github.event.action == 'created') || (github.event_name == 'pull_request')
250
+ needs : tests
251
+ runs-on : ubuntu-latest
252
+
253
+ steps :
254
+ - uses : actions/checkout@v4
255
+ with :
256
+ persist-credentials : false
257
+ - name : Set up Python
258
+ uses : actions/setup-python@v5
259
+ with :
260
+ python-version : " 3.x"
261
+
262
+ - name : Install pypa/build
263
+ run : >-
264
+ python3 -m
265
+ pip install
266
+ build
267
+ --user
268
+ - name : Build a binary wheel and a source tarball
269
+ run : python3 -m build
270
+ - name : Store the distribution packages
271
+ uses : actions/upload-artifact@v4
272
+ with :
273
+ name : python-package-distributions
274
+ path : dist/
You can’t perform that action at this time.
0 commit comments