diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index d9159c8..a573a74 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -131,13 +131,24 @@ jobs: - name: Test on TestPyPI (optional) if: inputs.test_pypi + continue-on-error: true env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} run: | + if [ -z "$TWINE_PASSWORD" ]; then + echo "⚠️ TEST_PYPI_API_TOKEN not configured, skipping TestPyPI upload" + echo " To enable TestPyPI testing, add TEST_PYPI_API_TOKEN to repository secrets" + exit 0 + fi + pip install twine echo "📦 Uploading to TestPyPI..." - twine upload --repository testpypi packages/*/dist/* --verbose + twine upload --repository testpypi packages/*/dist/* --verbose || { + echo "⚠️ TestPyPI upload failed, but continuing with release" + echo " This is optional and won't block the release" + exit 0 + } echo "✅ Test upload successful!" echo "📋 Check packages at: https://test.pypi.org/user/your-username/" echo "" diff --git a/docs/RELEASE.md b/docs/RELEASE.md index 0bc704a..dfb211c 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -7,6 +7,16 @@ Before releasing, ensure: 2. ✅ CI has passed on the latest commit (check [Actions](https://github.com/yichuan-w/LEANN/actions/workflows/ci.yml)) 3. ✅ You have determined the new version number +### Optional: TestPyPI Configuration + +To enable TestPyPI testing (recommended but not required): +1. Get a TestPyPI API token from https://test.pypi.org/manage/account/token/ +2. Add it to repository secrets: Settings → Secrets → Actions → New repository secret + - Name: `TEST_PYPI_API_TOKEN` + - Value: Your TestPyPI token (starts with `pypi-`) + +**Note**: TestPyPI testing is optional. If not configured, the release will skip TestPyPI and proceed. + ## 🚀 Recommended: Manual Release Workflow ### Via GitHub UI (Most Reliable) diff --git a/packages/leann-backend-diskann/third_party/DiskANN b/packages/leann-backend-diskann/third_party/DiskANN index af2a264..25339b0 160000 --- a/packages/leann-backend-diskann/third_party/DiskANN +++ b/packages/leann-backend-diskann/third_party/DiskANN @@ -1 +1 @@ -Subproject commit af2a26481e65232b57b82d96e68833cdee9f7635 +Subproject commit 25339b03413b5067c25b6092ea3e0f77ef8515c8