mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-17 22:29:41 -05:00
Former-commit-id: 10726ad0830d0dc44a52ff66fc4aa3b539f5fb77 Former-commit-id: c6e9b1113f3d0dc605c20d272c3f22a99067777e
18 lines
537 B
Bash
18 lines
537 B
Bash
#!/bin/sh
|
|
echo "Deploy jar to dev.bukkit.org"
|
|
|
|
filename="./jarname.txt"
|
|
|
|
if [ ! -f $filename ]; then
|
|
echo "The file $filename doesn't exist."
|
|
exit 1
|
|
fi
|
|
|
|
read -r JAR <$filename
|
|
xToken=$1
|
|
curl -X POST -H "X-Api-Token: $xToken" -F 'metadata={"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","gameVersions":[7330,7105],"releaseType":"release"}' -F "file=@./devbukkit/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" >fileid.json
|
|
cat fileid.json
|
|
echo "Finished upload to dev.bukkit.org."
|
|
|
|
exit 0
|