diff --git a/.github/workflows/tag-release-devcontainer.yml b/.github/workflows/tag-release-devcontainer.yml index 90bb9c5..64ad302 100644 --- a/.github/workflows/tag-release-devcontainer.yml +++ b/.github/workflows/tag-release-devcontainer.yml @@ -55,6 +55,11 @@ on: description: "An repository for the extra artifact" required: false type: string + pypi_publish: + description: "Whether to publish to PyPI" + required: false + type: boolean + default: false outputs: version_tag: value: ${{ jobs.tag_release.outputs.version_tag }} @@ -71,6 +76,9 @@ on: EXECUTE_JIRA_LAMBDA_ROLE: required: false description: "ARN of the role to assume when executing the Jira update lambda" + PYPI_TOKEN: + required: false + description: "PyPI token to publish packages" jobs: tag_release: permissions: @@ -222,6 +230,8 @@ jobs: EXTRA_ASSET: ${{ inputs.extra_artifact_name }} UPDATE_JIRA: ${{ inputs.update_jira }} JIRA_RELEASE_PREFIX: ${{ inputs.jira_release_prefix }} + PYPI_PUBLISH: ${{ inputs.pypi_publish }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - name: Create semantic release tag if: ${{ !inputs.dry_run }} @@ -234,6 +244,8 @@ jobs: EXTRA_ASSET: ${{ inputs.extra_artifact_name }} UPDATE_JIRA: ${{ inputs.update_jira }} JIRA_RELEASE_PREFIX: ${{ inputs.jira_release_prefix }} + PYPI_PUBLISH: ${{ inputs.pypi_publish }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: | npx semantic-release --tag-format "${TAG_FORMAT}"