Release Python Client to PYPI #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Python Client to PYPI | |
on: | |
workflow_dispatch: {} | |
jobs: | |
run-python-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: ./.github/actions/setup-go-cache | |
with: | |
cache-prefix: run-python-tests | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: '23.3' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./.github/workflows/python-tests | |
with: | |
python-version: '3.8' | |
tox-env: 'py38' | |
path: 'client/python' | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages_dir: client/python/dist/ |