Install twine for PyPI publishing
Some checks failed
Some checks failed
- Add twine installation to the build environment. - This ensures twine is available for PyPI publishing. - Move twine installation to after venv creation.
This commit is contained in:
parent
1aada98b92
commit
007c417064
@ -55,7 +55,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
||||||
uv pip install --system build twine
|
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
@ -63,6 +62,7 @@ jobs:
|
|||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
uv venv .venv
|
uv venv .venv
|
||||||
|
uv pip install --system build twine
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
uv run python -m build
|
uv run python -m build
|
||||||
uv run python -m twine upload dist/*
|
uv run python -m twine upload dist/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user