mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
use uv to publish planoai to pypi (#665)
This commit is contained in:
parent
4c4bc99e31
commit
6eb9d07e7e
2 changed files with 9 additions and 13 deletions
18
.github/workflows/publish-pypi.yml
vendored
18
.github/workflows/publish-pypi.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue