Skip to content

Commit 03dbb89

Browse files
committed
AEA-5986 Add pypi publishing to tag-release-devcontainer workflow.
1 parent 3166a79 commit 03dbb89

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ on:
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 }}
@@ -58,6 +63,10 @@ on:
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"
6170
jobs:
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

0 commit comments

Comments
 (0)