appveyor: Fix last few issues in appveyor
continuous-integration/appveyor/branch AppVeyor build succeeded Details

master nfp_moe_v2.0.0
Jonatan Nilsson 2022-08-18 10:29:55 +00:00
parent 2a1122acb3
commit acc3c08435
1 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ build_script:
-H "Authorization: token $deploytoken" \
-H "Content-Type: application/json" \
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases \
-d "{\"tag_name\":\"v${CURR_VER}\",\"name\":\"v${CURR_NAME}\",\"body\":\"Automatic release from Appveyor from ${APPVEYOR_REPO_COMMIT} :\n\n${APPVEYOR_REPO_COMMIT_MESSAGE}\"}")
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from Appveyor from ${APPVEYOR_REPO_COMMIT} :\n\n${APPVEYOR_REPO_COMMIT_MESSAGE}\"}")
CHECK=$?
if [ $CHECK -ne 0 ]; then
echo "Command failed with error code $CHECK"
@ -101,10 +101,10 @@ build_script:
echo "Deplying to production"
MAN_PORT=$(cat package.json | jq -r .port)
MAN_NAME=$(cat package.json | jq -r .name)
Echo "curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME"
echo "curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME"
curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME
fi
cd..
cd ..
done
if [ $SUCCESS -eq 0 ]; then