Skip to content

Commit 6678e2d

Browse files
committed
AEA-5986 Handle bools as strings.
1 parent 81fd8de commit 6678e2d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/tag-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}

release.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const commitTemplate = readFileSync("./releaseNotesTemplates/commit.hbs").toStri
55
const publish_packages = process.env.PUBLISH_PACKAGES?.split(",").map(s => s.trim()).filter(s => s.length > 0) || []
66
const 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
1010
const pypiRepoUrl = pypiTestPublish ? "https://test.pypi.org/legacy/" : "https://upload.pypi.org/legacy/"
1111
const pypiToken = pypiTestPublish ? process.env.PYPI_TEST_TOKEN : process.env.PYPI_TOKEN
1212

0 commit comments

Comments
 (0)