Compare commits

..

7 Commits

Author SHA1 Message Date
Klop233
6f14faa97a 绝对没问题 2024-04-13 00:17:36 +08:00
Klop233
7dd69685dc 绝对没问题 2024-04-13 00:06:08 +08:00
Klop233
f5b16a4008 绝对没问题 2024-04-12 23:42:23 +08:00
Klop233
f2ba98ad1f 绝对没问题 2024-04-12 23:24:24 +08:00
Klop233
07e3a81416 Update CI 2024-04-12 23:09:49 +08:00
Klop233
6a356d0425 Update CI 2024-04-12 22:34:23 +08:00
Klop233
4aaa3151a2 Update CI 2024-04-12 22:10:55 +08:00

View File

@@ -9,18 +9,20 @@ project_id="luminol"
mcversion_group=$(prop GroupMCV)
mcversion=$(prop mcVersion)
pre=$(prop preVersion)
if [ $pre = "true" ]; then
channel="experimental"
else
channel="default"
fi
changes=$(git log -1 --pretty='[{"commit": "%H", "message": "%s", "summary": "%b"}]')
changes=$(git log -1 --pretty="[{'commit': '%H', 'message': '%s', 'summary': '%b'}]")
jar_sha256=`sha256 build/libs/luminol-1.20.4-paperclip.jar`
jar_name="luminol-1.20.4-paperclip.jar"
ctime=$(date -u +"%s")"000"
# v2
echo "Authentication: $secret_v2"
echo "[DEBUG] curl --location -g --request POST "https://api.luminolmc.com/v2/projects/luminol/1.20.4/build/commit?jar_name=luminol-1.20.4-paperclip.jar&release_tag=$tag&changes="$changes"&sha256=$jar_sha256&time=$ctime&channel=$channel&version_group=$mcversion_group" -H "Authorization: $secret_v2""
# shellcheck disable=SC2031
curl --location -g --request POST "https://api.luminolmc.com/v2/projects/luminol/1.20.4/build/commit?jar_name=luminol-1.20.4-paperclip.jar&release_tag=$tag&changes=$changes&sha256=$jar_sha256&time=$ctime&channel=$channel&version_group=$mcversion_group" -H "Authorization: $secret_v2"
echo "[DEBUG] curl --location --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" -H "Content-Type: application/json" -H "Authorization: $secret_v2" -d "jar_name=$jar_name&channel=$channel&release_tag=$tag&sha256=$jar_sha256&time=$ctime&changes=\"$changes\""
"
curl --location --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" -H "Content-Type: application/json" -H "Authorization: $secret_v2" -d "jar_name=$jar_name&channel=$channel&release_tag=$tag&sha256=$jar_sha256&time=$ctime&changes=\"$changes\""