Fix build-jar workflow
All checks were successful
Build TurnBasedMC and create Release / build-and-store-artifact (push) Successful in 24s

This commit is contained in:
Stephen Seo 2024-01-08 15:06:47 +09:00
parent 3a6d800745
commit be19ce8748

View file

@ -26,7 +26,7 @@ jobs:
(Using OpenJDK Java.) (Using OpenJDK Java.)
$(javac --version) $(javac --version)
$(find TurnBasedMinecraftMod/build/libs -regex '.*[0-9].jar$' -exec sha256sum '{}' ';')\", $(find TurnBasedMinecraftMod/build/libs -regex '.*all.jar$' -exec sha256sum '{}' ';')\",
\"tag_name\": \"${GITHUB_REF_NAME}\" \"tag_name\": \"${GITHUB_REF_NAME}\"
}" > response.json \ }" > response.json \
&& curl --fail-with-body -X 'POST' \ && curl --fail-with-body -X 'POST' \
@ -34,4 +34,4 @@ jobs:
-H 'accept: application/json' \ -H 'accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}" \ -H "Authorization: token ${GITHUB_TOKEN}" \
-H 'Content-Type: multipart/form-data' \ -H 'Content-Type: multipart/form-data' \
-F "attachment=@$(find TurnBasedMinecraftMod/build/libs -regex '.*[0-9].jar$');type=application/java-archive" > response2.json -F "attachment=@$(find TurnBasedMinecraftMod/build/libs -regex '.*all.jar$');type=application/java-archive" > response2.json