aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2025-12-31 18:14:33 +0800
committerHsiangNianian <i@jyunko.cn>2025-12-31 18:14:33 +0800
commit6f9991d0200f04b1aedd198f67e6ac6537e21eb3 (patch)
tree727c4a2e309bf32d2be6029f6174ecc6151a9cb2 /.github/workflows
parent219f4c3f4067f0b26699a7801775dc37f93429aa (diff)
downloadbase-model-6f9991d0200f04b1aedd198f67e6ac6537e21eb3.tar.gz
base-model-6f9991d0200f04b1aedd198f67e6ac6537e21eb3.zip
fix: update TestPyPI publish step to use environment variables and run command
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/publish.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index a684228..bc8aefe 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -111,13 +111,11 @@ jobs:
path: dist/
- name: Publish to TestPyPI
- uses: pypa/gh-action-pypi-publish@release/v1
- with:
- repository-url: https://test.pypi.org/legacy
- password: ${{ secrets.TEST_PYPI_TOKEN }}
- skip-existing: true
- verbose: true
- attestations: false
+ env:
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
+ run: |
+ uv run twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing --verbose dist/*
publish-pypi:
name: Publish to PyPI