diff --git a/scripts/PushToAPI.sh b/scripts/PushToAPI.sh index 24114c8..84fc9cc 100644 --- a/scripts/PushToAPI.sh +++ b/scripts/PushToAPI.sh @@ -18,6 +18,7 @@ changes=$(git log -1 --pretty='[{"commit": "%H", "message": "%s", "summary": "%b jar_sha256=`sha256 build/libs/luminol-1.20.4-paperclip.jar` jar_name="luminol-1.20.4-paperclip.jar" ctime=$(date -u +"%s")"000" + # v2 echo "Authentication: $secret_v2" echo "[DEBUG] curl --location --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" --header "Content-Type: application/json" --header "Authentication: $secret_v2" --data-raw "{\"version_group\":\"$mcversion_group\",\"channel\":\"$channel\",\"changes\":\"$changes\",\"jar_name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"release_tag\":\"$tag\",\"time\":\"$ctime\"}""