Skip to content

CI: Fix package build by using hatch instead of uv #1456

CI: Fix package build by using hatch instead of uv

CI: Fix package build by using hatch instead of uv #1456

Workflow file for this run

---
name: release
on: push
permissions:
contents: read
checks: write
statuses: write
jobs:
pypi:
name: 'Build & publish package to PyPI'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: true
enable-cache: true
python-version: "3.14"
- name: Set up Hatch
run: uv pip install hatch
- name: Build package
run: hatch build
- name: Publish package to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}