9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-19 14:59:25 +00:00

update release script

This commit is contained in:
NONPLAYT
2025-03-08 17:40:12 +03:00
parent e4aa6797e2
commit 7fefd1b839

View File

@@ -39,24 +39,21 @@ mv divinemc-server/build/libs/divinemc-paperclip-"$version"-mojmap.jar "$jarName
} >> "$GITHUB_ENV"
{
echo "$divinemcid [![download](https://img.shields.io/github/downloads/BX-Team/DivineMC/$tagid/total?color=0)](https://github.com/BX-Team/DivineMC/releases/download/$tagid/$jarName)"
echo "====="
echo ""
echo "### 📜 Commits:"
if [ "$experimental" = "true" ]; then
echo "> [!WARNING]"
echo "> This is an early, experimental build. It is only recommended for usage on test servers and should be used with caution."
echo "> This is an experimental build, it may contain bugs and issues. Use at your own risk."
echo "> **Backups are mandatory!**"
echo ""
fi
echo "### Commits"
} >> $changelog
number=$(git log --oneline master ^"$(git describe --tags --abbrev=0)" | wc -l)
git log --pretty='> [%h] %s' "-$number" >> $changelog
git log --pretty='- [%h](https://github.com/BX-Team/DivineMC/commit/%H) %s' "-$number" >> $changelog
{
echo ""
echo "### Checksum"
echo "### 🔒 Checksums:"
echo "| File | $jarName |"
echo "| ---- | ---- |"
echo "| MD5 | $(md5 "$jarName") |"