Skip to content

v1.0.3

v1.0.3 #5

name: Publish to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel build twine
- name: Build package
run: python -m build -s -w
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}