optional requests session with use_requests_session #16
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: Upload Python Package | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'clients/python/setup.py' | |
workflow_dispatch: | |
jobs: | |
pypi: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: python -m pip install -U build | |
- name: Build | |
run: python -m build | |
working-directory: clients/python | |
- name: Move package | |
run: mv clients/python/dist ./ | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |