Skip to content

Update README.md

Update README.md #15

Workflow file for this run

# .github/workflows/pypi-publish.yml
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows to run this workflow manually from the Actions tab on GitHub UI
workflow_dispatch:
jobs:
build-n-publish:
name: pypi-publish
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build a binary wheel and a source tarball
run: |
hatch build
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@db8f07d3871a0a180efa06b95d467625c19d5d5f
with:
print-hash: true
verbose: true