diff options
| author | 2025-12-31 18:33:01 +0800 | |
|---|---|---|
| committer | 2025-12-31 18:33:01 +0800 | |
| commit | 3522b3efcc879a7238c6309ede2673f4bd75b27d (patch) | |
| tree | 1a9ec52e67bbd465c148bef1e65faee2ac4a54f4 /.github/workflows | |
| parent | cc7ac6e69b2dea53c66043604c14dc962a4a58a9 (diff) | |
| download | base-model-3522b3efcc879a7238c6309ede2673f4bd75b27d.tar.gz base-model-3522b3efcc879a7238c6309ede2673f4bd75b27d.zip | |
fix: update publish workflow to use uv for installing twine and publishing to TestPyPI
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/publish.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 322f254..71fd1ea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -110,14 +110,18 @@ jobs: name: dist path: dist/ - - name: Install twine - run: pip install twine + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Publish to TestPyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} run: | - twine upload --repository testpypi --skip-existing --verbose dist/* + uv pip install twine + uv run twine upload --repository testpypi --skip-existing --verbose dist/* publish-pypi: name: Publish to PyPI |
