File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ name: CD | Publish Python 🐍 distributions 📦 to PyPI
33on :
44 push :
55 branches : [main]
6+ workflow_dispatch :
7+ inputs :
8+ force_publish :
9+ description : ' Force publish without release-please'
10+ required : true
11+ default : ' false'
12+ type : choice
13+ options :
14+ - ' true'
15+ - ' false'
616
717permissions :
818 contents : write
2939 pypi-publish :
3040 name : PyPI Publish
3141 needs : release-please
32- if : ${{ needs.release-please.outputs.release_created }}
42+ if : ${{ needs.release-please.outputs.release_created || (github.event_name == 'workflow_dispatch' && inputs.force_publish == 'true') }}
3343 runs-on : ubuntu-latest
3444
3545 environment :
6676
6777 notify-runpod-workers :
6878 name : Notify workers
69- needs : [release-please, build-n -publish]
70- if : ${{ needs.release-please.outputs.release_created }}
79+ needs : [release-please, pypi -publish]
80+ if : ${{ needs.release-please.outputs.release_created || (github.event_name == 'workflow_dispatch' && inputs.force_publish == 'true') }}
7181 strategy :
7282 matrix :
7383 repo :
You can’t perform that action at this time.
0 commit comments