Skip to content

Publish Python Client to PyPI #31

Publish Python Client to PyPI

Publish Python Client to PyPI #31

name: Publish Python Client to PyPI
on:
workflow_run:
workflows:
- "Client Python tests"
types:
- completed
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'v') &&
contains(github.event.workflow_run.head_branch, '.'))
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"