Skip to content

Bump version after merge into release #199

Bump version after merge into release

Bump version after merge into release #199

name: Publish Python 🐍 distribution 📦 to PyPI
on:
push:
branches:
- release
jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
- name: Build and publish
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD