mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 09:39:40 -05:00
Former-commit-id: 48aa6eff6ac39da2f767f914b18208f055d013a1 [formerly 031ffe63bc766a7caebcbf02ba394de552931cfe] Former-commit-id: 419c99782237adef2e3be91f5a868a0471619f18
27 lines
712 B
Bash
27 lines
712 B
Bash
#!/bin/sh
|
|
|
|
echo "Deploy to the packagecloud.io"
|
|
|
|
mvn deploy
|
|
|
|
echo "Deploy jar to dev.bukkit.org"
|
|
|
|
# 获取从install完成后输出的JAR文件的名字
|
|
filename="./jarname.txt"
|
|
|
|
if [ ! -f $filename ]
|
|
then
|
|
echo "The file $filename doesn't exist."
|
|
exit 1
|
|
fi
|
|
|
|
# JAR为编译后jar文件名称
|
|
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=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json
|
|
cat fileid.json
|
|
echo "Finished upload to dev.bukkit.org."
|
|
|
|
#退出脚本,且退出状态码为0
|
|
exit 0
|