File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ jobs:
339339 EXTRA_ASSET : ${{ inputs.extra_artifact_name }}
340340 PYPI_PUBLISH : ${{ inputs.pypi_publish }}
341341 PYPI_TEST_PUBLISH : ${{ inputs.pypi_test_publish }}
342+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
343+ PYPI_TEST_TOKEN : ${{ secrets.PYPI_TEST_TOKEN }}
342344
343345 - name : Create semantic release tag
344346 if : ${{ !inputs.dry_run }}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const commitTemplate = readFileSync("./releaseNotesTemplates/commit.hbs").toStri
55const publish_packages = process . env . PUBLISH_PACKAGES ?. split ( "," ) . map ( s => s . trim ( ) ) . filter ( s => s . length > 0 ) || [ ]
66const mainBranch = process . env . MAIN_BRANCH || "main"
77
8- const pypiPublish = process . env . PYPI_PUBLISH || false
9- const pypiTestPublish = process . env . PYPI_TEST_PUBLISH || false
8+ const pypiPublish = process . env . PYPI_PUBLISH ?. toLowerCase ( ) === 'true' || false
9+ const pypiTestPublish = process . env . PYPI_TEST_PUBLISH ?. toLowerCase ( ) === 'true' || false
1010const pypiRepoUrl = pypiTestPublish ? "https://test.pypi.org/legacy/" : "https://upload.pypi.org/legacy/"
1111const pypiToken = pypiTestPublish ? process . env . PYPI_TEST_TOKEN : process . env . PYPI_TOKEN
1212
You can’t perform that action at this time.
0 commit comments