aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/publish.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/publish.yml')
-rw-r--r--.github/workflows/publish.yml7
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: