Skip to content

Commit

Permalink
Fix api push, again, again (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei authored Jul 30, 2023
1 parent 729b055 commit 769b2d8
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions scripts/PushToAPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,7 @@ jar_name="leaves-$mcversion.jar"
jar_sha256=`sha256 $jar_name`

data=$(cat <<EOF
'{
"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"
}'
{"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"}
EOF
)

Expand Down

0 comments on commit 769b2d8

Please sign in to comment.