use uv to publish planoai to pypi (#665)

This commit is contained in:
Adil Hafeez 2025-12-28 14:14:27 -08:00 committed by GitHub
parent 4c4bc99e31
commit 6eb9d07e7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 13 deletions

View file

@ -24,19 +24,15 @@ jobs:
with:
python-version: "3.12"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Build package
run: python -m build
- name: Check package with twine
run: twine check dist/*
run: uv build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish