Skip to content

Commit cd3cf9f

Browse files
authored
New: [AEA-5986] - Add pypi publishing to tag-release-devcontainer workflow (#94)
## Summary - ✨ New Feature
1 parent 6713f00 commit cd3cf9f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tag-release-devcontainer.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ on:
5555
description: "An repository for the extra artifact"
5656
required: false
5757
type: string
58+
pypi_publish:
59+
description: "Whether to publish to PyPI"
60+
required: false
61+
type: boolean
62+
default: false
5863
outputs:
5964
version_tag:
6065
value: ${{ jobs.tag_release.outputs.version_tag }}
@@ -71,6 +76,9 @@ on:
7176
EXECUTE_JIRA_LAMBDA_ROLE:
7277
required: false
7378
description: "ARN of the role to assume when executing the Jira update lambda"
79+
PYPI_TOKEN:
80+
required: false
81+
description: "PyPI token to publish packages"
7482
jobs:
7583
tag_release:
7684
permissions:
@@ -222,6 +230,8 @@ jobs:
222230
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
223231
UPDATE_JIRA: ${{ inputs.update_jira }}
224232
JIRA_RELEASE_PREFIX: ${{ inputs.jira_release_prefix }}
233+
PYPI_PUBLISH: ${{ inputs.pypi_publish }}
234+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
225235

226236
- name: Create semantic release tag
227237
if: ${{ !inputs.dry_run }}
@@ -234,6 +244,8 @@ jobs:
234244
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
235245
UPDATE_JIRA: ${{ inputs.update_jira }}
236246
JIRA_RELEASE_PREFIX: ${{ inputs.jira_release_prefix }}
247+
PYPI_PUBLISH: ${{ inputs.pypi_publish }}
248+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
237249
run: |
238250
npx semantic-release --tag-format "${TAG_FORMAT}"
239251

0 commit comments

Comments
 (0)