From 3c2f2d65e245fa6c2e7f8400e66012c47bdde15d Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 31 Dec 2025 17:57:58 +0800 Subject: fix: remove unnecessary commands and comments in publish workflow --- .github/workflows/publish.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43551c5..6a8531e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,7 +57,6 @@ jobs: - name: Check distribution run: | - uv pip install twine uv run twine check dist/* - uses: actions/upload-artifact@v4 @@ -67,13 +66,11 @@ jobs: - name: Package model files run: | - # 创建临时目录,只包含推理需要的文件 mkdir -p model-package cd models/trpg-final cp model.onnx model.onnx.data config.json tokenizer.json tokenizer_config.json special_tokens_map.json vocab.txt ../../model-package/ cd ../.. - # 打包 cd model-package zip -r ../model.zip . cd .. @@ -88,7 +85,6 @@ jobs: name: Publish to TestPyPI needs: build runs-on: ubuntu-latest - # Push 到 main 分支(非 tag)时发布到 TestPyPI if: github.event_name == 'push' && github.ref == 'refs/heads/main' environment: @@ -126,8 +122,7 @@ jobs: - name: Publish to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ - username: __token__ + repository-url: https://test.pypi.org/legacy password: ${{ secrets.TEST_PYPI_API_TOKEN }} publish-pypi: -- cgit v1.2.3-70-g09d2