Create a release
This commit is contained in:
15
release.sh
15
release.sh
@@ -41,17 +41,8 @@ RELEASE_ID=$(echo $RELEASE_RESPONSE | awk -F'"id":' '{print $2+0; exit}')
|
|||||||
echo "Release ID: $RELEASE_ID"
|
echo "Release ID: $RELEASE_ID"
|
||||||
|
|
||||||
echo "Uploading the things..."
|
echo "Uploading the things..."
|
||||||
WINRELEASE="./build/windows/x64/runner/Release/"
|
WINRELEASE="build/bin/signalerr.exe"
|
||||||
7z a $WINRELEASE/$ZIP $WINRELEASE/*
|
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-F "attachment=@$WINRELEASE/$ZIP" \
|
-F "attachment=@$WINRELEASE" \
|
||||||
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=$ZIP"
|
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=signalerr.exe"
|
||||||
rm $WINRELEASE/$ZIP
|
|
||||||
|
|
||||||
ANDROIDRELEASE="./build/app/outputs/flutter-apk/"
|
|
||||||
mv $ANDROIDRELEASE/app-release.apk $ANDROIDRELEASE/$APK
|
|
||||||
curl -X POST \
|
|
||||||
-H "Authorization: token $TOKEN" \
|
|
||||||
-F "attachment=@$ANDROIDRELEASE/$APK" \
|
|
||||||
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=$APK"
|
|
||||||
|
Reference in New Issue
Block a user