Commit 81fe1c4d authored by scuq's avatar scuq

release.sh tests

parent 9c69a3f4
......@@ -52,9 +52,18 @@ response=$(curl --request POST $createreleaseurl \
--header "PRIVATE-TOKEN: $ACCESSTOKEN" \
--data "$createreleasedata")
echo "Create release response: $response"
echo "Create release response: `echo $response | python -m json.tool`"
addassetlinkwinurl="https://git.abyle.org/api/v4/projects/146/releases/v%version%/assets/links"
response=$(curl --request POST $addassetlinkwinurl \
--silent \
--header "PRIVATE-TOKEN: $ACCESSTOKEN" \
--data name="aic-$VERSION-win64.exe" \
--data url="https://git.abyle.org/scuq/aic/blob/v$VERSION/releases/aic-$VERSION-win64.exe")
echo "Create release link win64: `echo $response | python -m json.tool` to https://git.abyle.org/scuq/aic/blob/v$VERSION/releases/aic-$VERSION-win64.exe"
......
......@@ -6,10 +6,10 @@ day=`date '+%d'`
hour=`date '+%H'`
minute=`date '+%M'`
echo $shortyear > ..\aic\MAJOR.ver
echo $month > ..\aic\MINOR.ver
echo $day > ..\aic\PATCH.ver
echo $hour$minute > ..\aic\BUILD.ver
echo $shortyear > ../aic/MAJOR.ver
echo $month > ../aic/MINOR.ver
echo $day > ../aic/PATCH.ver
echo $hour$minute > ../aic/BUILD.ver
echo $shortyear.$month.$day.$hour$minute
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment