Skip to content

Commit 7a65e3d

Browse files
ci: PLT-690: Add PyPi to release pipeline
1 parent 8ed404d commit 7a65e3d

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/build-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
run: twine upload dist/*
103103

104104
- name: Upload to artifact
105-
if: always() && inputs.release_type == 'release'
105+
if: always()
106106
uses: actions/upload-artifact@v4
107107
with:
108108
name: Dist

.github/workflows/release-pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,15 @@ jobs:
9999
const docker_build_config = yaml.load(docker_build_config_content);
100100
101101
core.setOutput("matrix-include", docker_build_config);
102+
103+
build-pypi:
104+
name: "Build"
105+
permissions:
106+
contents: write
107+
uses: ./.github/workflows/build-pypi.yml
108+
with:
109+
version: ${{ github.ref_name }}
110+
ref: ${{ github.ref_name }}
111+
upload_to_pypi: true
112+
release-id: ${{ github.event.release.id }}
113+
secrets: inherit

.github/workflows/update-draft-release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,16 @@ jobs:
158158
159159
core.setOutput("id", updated_release.id);
160160
core.setOutput("tag_name", release.tag_name);
161+
162+
build-pypi:
163+
name: "Build"
164+
needs:
165+
- draft-release
166+
permissions:
167+
contents: write
168+
uses: ./.github/workflows/build-pypi.yml
169+
with:
170+
version: ${{ needs.draft-release.outputs.rc-version }}
171+
ref: ${{ github.ref_name }}
172+
release-id: ${{ needs.draft-release.outputs.id }}
173+
secrets: inherit

0 commit comments

Comments
 (0)