Skip to content

Commit 372f88c

Browse files
committed
ci: consolidate publish into release-please workflow
1 parent 803e798 commit 372f88c

File tree

2 files changed

+25
-30
lines changed

2 files changed

+25
-30
lines changed

.github/workflows/python-publish.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,28 @@ jobs:
2525
token: ${{ steps.app-token.outputs.token }}
2626
config-file: release-please-config.json
2727
manifest-file: .release-please-manifest.json
28+
29+
publish:
30+
needs: release-please
31+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
32+
runs-on: ubuntu-latest
33+
environment: pypi
34+
permissions:
35+
contents: read
36+
id-token: write
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
40+
with:
41+
ref: ${{ needs.release-please.outputs.tag_name }}
42+
43+
- name: Setup
44+
uses: descope/.github/.github/actions/python/poetry/setup@main
45+
with:
46+
python-version: "3.11"
47+
48+
- name: Build
49+
uses: descope/.github/.github/actions/python/poetry/build@main
50+
51+
- name: Publish to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)