File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -199,14 +199,21 @@ jobs:
199199 - name : Package and upload XCFramework
200200 run : |
201201 zip -r "${{ env.XCFRAMEWORK_NAME }}.zip" "${{ env.XCFRAMEWORK_NAME }}"
202-
203- gh release upload "${{ needs.setup.outputs.release_tag }}" \
204- "${{ env.XCFRAMEWORK_NAME }}.zip" \
205- --clobber
206-
202+
203+ # Get release info to find upload URL
204+ RELEASE_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
205+ "https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ needs.setup.outputs.release_tag }}")
206+
207+ UPLOAD_URL=$(echo "$RELEASE_DATA" | jq -r '.upload_url' | sed 's/{?name,label}//')
208+
209+ # Upload the asset
210+ curl -X POST \
211+ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
212+ -H "Content-Type: application/zip" \
213+ --data-binary @"${{ env.XCFRAMEWORK_NAME }}.zip" \
214+ "${UPLOAD_URL}?name=${{ env.XCFRAMEWORK_NAME }}.zip&label=XCFramework"
215+
207216 echo "✅ XCFramework uploaded to release"
208- env :
209- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
210217
211218 - name : Upload macOS artifacts for bundle assembly
212219 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments