File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1616 with :
1717 python-version : " 3.12"
1818 - name : Install dependencies
19- run : |
20- pip install tox
21- sudo apt-get update && sudo apt-get install -y curl jq
19+ run : pip install tox
2220 # - name: Run basic unit tests
2321 # run: tox -e py312-torch29-tf_latest-unit
2422 - name : Build Wheel
3634 DOWNLOAD_URL="https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/${WHEEL_NAME}"
3735
3836 echo "Releasing wheel to Kitmaker Portal..."
39- RESPONSE=$(curl -s -X POST \
37+ echo "URL: $DOWNLOAD_URL"
38+
39+ RESPONSE=$(curl -X POST \
4040 "${{ secrets.KITMAKER_RELEASE_URL }}" \
4141 -H "Authorization: Bearer ${{ secrets.KITMAKER_API_TOKEN }}" \
4242 -H "Content-Type: application/json" \
@@ -53,12 +53,21 @@ jobs:
5353 }
5454 ]
5555 }")
56+ CURL_EXIT=$?
57+
58+ echo "Curl exit code: $CURL_EXIT"
5659 echo "Release response: $RESPONSE"
5760
61+ # Check if curl succeeded
62+ if [ $CURL_EXIT -ne 0 ]; then
63+ echo "❌ Curl command failed with exit code $CURL_EXIT"
64+ exit 1
65+ fi
66+
5867 # Check if release was successful
5968 if echo "$RESPONSE" | jq -e '.release_uuid' > /dev/null; then
6069 echo "✅ Release created successfully"
6170 else
62- echo "❌ Release failed"
71+ echo "❌ Release failed - no release_uuid in response "
6372 exit 1
6473 fi
You can’t perform that action at this time.
0 commit comments