File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11name : Build
22
33on :
4+ workflow_dispatch :
5+ inputs :
6+ publish_artifacts :
7+ description : ' Publish artifacts (Y|N)'
8+ required : true
9+ default : ' N'
410 release :
511 types : [published]
612 push :
7783 if : matrix.python-version == 3.12
7884
7985 - name : Upload distribution package
80- uses : actions/upload-artifact@master
86+ uses : actions/upload-artifact@v4
8187 with :
8288 name : dist
8389 path : dist
@@ -86,10 +92,10 @@ jobs:
8692 publish :
8793 runs-on : ubuntu-latest
8894 needs : build
89- if : github.event_name == 'release'
95+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y')
9096 steps :
9197 - name : Download a distribution artifact
92- uses : actions/download-artifact@v2
98+ uses : actions/download-artifact@v4
9399 with :
94100 name : dist
95101 path : dist
You can’t perform that action at this time.
0 commit comments