File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-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 :
@@ -82,12 +88,13 @@ jobs:
8288 publish :
8389 runs-on : ubuntu-latest
8490 needs : build
85- if : github.event_name == 'release' || startsWith (github.ref, 'refs/tags/ ')
91+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y ')
8692 steps :
8793 - name : Download a distribution artifact
88- uses : actions/download-artifact@v2
94+ uses : actions/download-artifact@v4
8995 with :
90- name : dist
96+ pattern : dist-*
97+ merge-multiple : true
9198 path : dist
9299
93100 - name : Use Python 3.12
You can’t perform that action at this time.
0 commit comments