Update CI workflow for main branch and release events

This commit is contained in:
netkas 2024-09-17 13:49:46 -04:00
parent 17f95d619f
commit ffc91de77e

View file

@ -84,11 +84,11 @@ jobs:
echo "Uploading build artifact to GitHub release"
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/zip" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$BUILD_FILE" \
"$GITHUB_API_URL/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=$(basename $BUILD_FILE)"
else
echo "Build artifact not found"
exit 1
fi
fi