diff options
| author | 2025-12-31 17:57:58 +0800 | |
|---|---|---|
| committer | 2025-12-31 17:57:58 +0800 | |
| commit | 3c2f2d65e245fa6c2e7f8400e66012c47bdde15d (patch) | |
| tree | bf37b059cd14c2f9f73c0c07e9482148225175bc | |
| parent | e84af2657916f7a4a23d4dffadf58e52e1f4720d (diff) | |
| download | base-model-3c2f2d65e245fa6c2e7f8400e66012c47bdde15d.tar.gz base-model-3c2f2d65e245fa6c2e7f8400e66012c47bdde15d.zip | |
fix: remove unnecessary commands and comments in publish workflow
| -rw-r--r-- | .github/workflows/publish.yml | 7 |
1 files changed, 1 insertions, 6 deletions
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: |
