Update CI workflow for main branch and release events
This commit is contained in:
parent
17f95d619f
commit
ffc91de77e
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -84,11 +84,11 @@ jobs:
|
||||||
echo "Uploading build artifact to GitHub release"
|
echo "Uploading build artifact to GitHub release"
|
||||||
curl \
|
curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Content-Type: application/zip" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary @"$BUILD_FILE" \
|
--data-binary @"$BUILD_FILE" \
|
||||||
"$GITHUB_API_URL/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=$(basename $BUILD_FILE)"
|
"$GITHUB_API_URL/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=$(basename $BUILD_FILE)"
|
||||||
else
|
else
|
||||||
echo "Build artifact not found"
|
echo "Build artifact not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue