| 1 |
name: Publish |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- 'v*' |
| 7 |
|
| 8 |
jobs: |
| 9 |
build: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
|
| 12 |
permissions: |
| 13 |
id-token: write # mandatory for trusted publishing |
| 14 |
|
| 15 |
steps: |
| 16 |
- uses: actions/checkout@v7 |
| 17 |
|
| 18 |
- name: Set up Python 3.14 |
| 19 |
uses: actions/setup-python@v7 |
| 20 |
with: |
| 21 |
python-version: 3.14 |
| 22 |
|
| 23 |
- name: Build wheel and source tarball |
| 24 |
run: | |
| 25 |
pip install setuptools wheel |
| 26 |
python setup.py sdist bdist_wheel |
| 27 |
|
| 28 |
- name: Publish a Python distribution to PyPI |
| 29 |
uses: pypa/gh-action-pypi-publish@release/v1 |