Skip to content

Commit ef35fd0

Browse files
committed
Add Python release GitHub Action workflow
Signed-off-by: Willem Pienaar <[email protected]>
1 parent 11c7ea1 commit ef35fd0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,21 @@ jobs:
121121
run: ./infra/scripts/install-helm.sh
122122
- name: Publish Helm charts
123123
run: ./infra/scripts/sync-helm-charts.sh
124+
125+
publish-python-sdk:
126+
runs-on: ubuntu-latest
127+
env:
128+
TWINE_USERNAME: __token__
129+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
130+
steps:
131+
- uses: actions/checkout@v2
132+
- uses: actions/setup-python@v2
133+
with:
134+
python-version: '3.7'
135+
architecture: 'x64'
136+
- name: Publish Python Package
137+
run: |
138+
cd sdk/python
139+
python3 -m pip install --user --upgrade setuptools wheel twine
140+
python3 setup.py sdist bdist_wheel
141+
python3 -m twine upload --verbose dist/*

0 commit comments

Comments
 (0)