mirror of
https://github.com/katanemo/plano.git
synced 2026-07-23 16:51:04 +02:00
fix more
This commit is contained in:
parent
4f9919807c
commit
6bf4a507e9
1 changed files with 10 additions and 11 deletions
21
.github/workflows/publish-pypi.yml
vendored
21
.github/workflows/publish-pypi.yml
vendored
|
|
@ -23,27 +23,26 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.13"
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install build tools
|
||||||
uses: astral-sh/setup-uv@v4
|
run: pip install build twine
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: uv build
|
run: python -m build
|
||||||
|
|
||||||
- name: Debug token (REMOVE THIS)
|
- name: Debug token (REMOVE THIS)
|
||||||
env:
|
env:
|
||||||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
if [ -z "$UV_PUBLISH_TOKEN" ]; then
|
if [ -z "$TWINE_PASSWORD" ]; then
|
||||||
echo "Token is empty!"
|
echo "Token is empty!"
|
||||||
else
|
else
|
||||||
echo "Token is set (length: ${#UV_PUBLISH_TOKEN})"
|
echo "Token is set (length: ${#TWINE_PASSWORD})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_USERNAME: __token__
|
||||||
run: uv publish
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
run: twine upload dist/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue