Workflow file for this run
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 pypi | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
jobs: | |
release-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies with Poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry | |
poetry config virtualenvs.create false | |
poetry self update | |
poetry install | |
poetry self add poetry-plugin-shell | |
poetry shell | |
poetry check | |
- name: Build release distributions | |
run: | | |
poetry cache clear PyPI --all | |
poetry build | |
- name: Publish to PyPI | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
poetry publish |