Skip to content

Commit 84b9428

Browse files
committed
ci: Add workflow for publishing client package
Add a GitHub Actions workflow to automatically publish the client Python package to PyPI when changes to its source code are committed, given that the tests have completed successfully. The workflow uses poetry for building and publishing the package. Signed-off-by: Phoevos Kalemkeris <[email protected]>
1 parent 61994d8 commit 84b9428

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Python Client to PyPI
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- "Python tests"
7+
types:
8+
- completed
9+
paths:
10+
- "client/**"
11+
workflow_dispatch:
12+
13+
jobs:
14+
build-and-publish:
15+
runs-on: ubuntu-latest
16+
if: |
17+
github.event_name == "workflow_dispatch" ||
18+
github.event.workflow_run.conclusion == "success"
19+
defaults:
20+
run:
21+
working-directory: client
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Build and publish to pypi
26+
uses: JRubics/[email protected]
27+
with:
28+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)