Skip to content

Update CI versions (#49) #20

Update CI versions (#49)

Update CI versions (#49) #20

name: Publish Python 🐍 distributions 📦 to (Test)PyPI
on:
push:
tags:
- 'v*'
jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- name: Install tox
run: |
python -m pip install tox
- name: Build package distribution
run: |
tox -e build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}