Skip to content

Merge pull request #1 from itsdevbear/fix-pypi #10

Merge pull request #1 from itsdevbear/fix-pypi

Merge pull request #1 from itsdevbear/fix-pypi #10

Workflow file for this run

name: Publish Python Package to PyPI
on:
push:
tags:
- 'v*.*.*' # Trigger on tags like v0.1.0, v1.2.3
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for trusted publishing
environment: PyPI
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install build dependencies
run: uv pip install build --system # Install build globally in the runner
- name: Build package
run: uv run python -m build .
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1