diff --git a/.gitea/workflows/publish-ray-serve.yaml b/.gitea/workflows/publish-ray-serve.yaml index efe1b34..78e00ed 100644 --- a/.gitea/workflows/publish-ray-serve.yaml +++ b/.gitea/workflows/publish-ray-serve.yaml @@ -63,16 +63,19 @@ jobs: env: TWINE_USERNAME: ${{ secrets.REGISTRY_USER }} TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }} - # Disable SSL verification for internal self-signed cert - CURL_CA_BUNDLE: "" run: | cd ray-serve # Use internal registry URL to bypass Cloudflare 100MB limit - # --disable-certificate-verification for self-signed internal cert - twine upload \ - --disable-certificate-verification \ - --repository-url https://registry.lab.daviestechlabs.io/api/packages/daviestechlabs/pypi \ - dist/* + # curl with -k to skip SSL verification for self-signed cert + for file in dist/*.whl dist/*.tar.gz; do + if [ -f "$file" ]; then + echo "Uploading $file..." + curl -k --fail -X POST \ + -u "$TWINE_USERNAME:$TWINE_PASSWORD" \ + -F "content=@$file" \ + "https://registry.lab.daviestechlabs.io/api/packages/daviestechlabs/pypi/upload" + fi + done - name: Notify on success if: success()