Skip to content

0.2.0

0.2.0 #11

name: Publish Python 🐍 distributions 📦 to PyPI
on:
release:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: pip install -U setuptools build twine
- name: Build package
run: python -m build
- name: Upload deploy
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_SECRET }}
run: python -m twine upload dist/*