Skip to content

v1.0.1

v1.0.1 #1

Workflow file for this run

name: "Build and Publish Python Packages"
on:
push:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+"
jobs:
build_sdist_wheel:
name: "Source and wheel distribution"
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v5
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: "Install Python build dependencies"
run: |
pip install build
- name: "Build source distribution"
run: |
python -m build --sdist
- name: "Build wheel"
run: |
python -m build --wheel
- name: "Upload artifacts"
uses: actions/upload-artifact@v5
with:
name: dist
path: dist/
retention-days: 1
publish_pypi:
name: "Publish packages on PyPI"
runs-on: ubuntu-latest
needs:
- build_sdist_wheel
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v6
with:
path: dist/
- name: "List packages"
run: |
find . -name "*.whl" -o -name "*.tar.gz"
- name: "Publish packages on PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}