diff --git a/scripts/PushToAPI.sh b/scripts/PushToAPI.sh index 04baba2e..70dc0af4 100644 --- a/scripts/PushToAPI.sh +++ b/scripts/PushToAPI.sh @@ -24,3 +24,4 @@ jar_name="leaves-$mcversion.jar" jar_sha256=`sha256 $jar_name` curl --location --request POST "https://api.leavesmc.top/new_release" --header "Content-Type: application/json" --data-raw "{\"project_id\":\"$project_id\",\"project_name\":\"$project_name\",\"version\":\"$mcversion\",\"time\":\"$ctime\",\"channel\":\"$channel\",\"promoted\":$promoted,\"changes\":\"$changes\",\"downloads\":{\"application\":{\"name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"url\":\"https://github.com/LeavesMC/Leaves/releases/download/$tag/$jar_name\"}},\"secret\":\"$secret\"}" +curl --location --request POST "https://api.leavesmc.top/upload_file" -F "file=@$jar_name" -F "filename=$jar_name" -F "filehash=$jar_sha256" -F "secret=$secret" \ No newline at end of file