File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 description : " An repository for the extra artifact"
4646 required : false
4747 type : string
48+ pypi_publish :
49+ description : " Whether to publish to PyPI"
50+ required : false
51+ type : boolean
52+ default : false
4853 outputs :
4954 version_tag :
5055 value : ${{ jobs.tag_release.outputs.version_tag }}
5863 NPM_TOKEN :
5964 required : false
6065 description : " NPM token to publish packages"
66+
67+ PYPI_TOKEN :
68+ required : false
69+ description : " PyPI token to publish packages"
6170jobs :
6271 tag_release :
6372 runs-on : ubuntu-22.04
@@ -191,6 +200,8 @@ jobs:
191200 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
192201 MAIN_BRANCH : ${{ inputs.main_branch }}
193202 EXTRA_ASSET : ${{ inputs.extra_artifact_name }}
203+ PYPI_PUBLISH : ${{ inputs.pypi_publish }}
204+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
194205
195206 - name : Create semantic release tag
196207 if : ${{ !inputs.dry_run }}
@@ -201,6 +212,8 @@ jobs:
201212 TAG_FORMAT : ${{ inputs.tag_format }}
202213 MAIN_BRANCH : ${{ inputs.main_branch }}
203214 EXTRA_ASSET : ${{ inputs.extra_artifact_name }}
215+ PYPI_PUBLISH : ${{ inputs.pypi_publish }}
216+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
204217 run : |
205218 npx semantic-release --tag-format "${TAG_FORMAT}"
206219
You can’t perform that action at this time.
0 commit comments