Publish Python Client to PyPI #30
This file contains hidden or 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: 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]" |