mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-18 06:39:41 -05:00
Former-commit-id: cd4640c948371354ff3bf26606f3f8cc285bae51 [formerly 1c4283865bafdfc039909048e1c2d3bbe81df95d] Former-commit-id: 5ba45c355d0c718e34115103dadd7857540b6ea8
18 lines
534 B
Bash
18 lines
534 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 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
|