mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@d6ac530c [ci/skip] ignore deprecation or removal warnings PurpurMC/Purpur@8c293626 [ci/skip] ignore deprecation or removal warnings PurpurMC/Purpur@65b1288b Updated Upstream (Paper) PurpurMC/Purpur@6be184ec Merge branch 'ver/1.21.4' into ver/1.21.5 PurpurMC/Purpur@0311dfcd Updated Upstream (Paper) PurpurMC/Purpur@ecd0d703 Updated Upstream (Paper) PurpurMC/Purpur@c5bb590f [ci/skip] Mention API Checks for CONTRIBUTING.md PurpurMC/Purpur@96f0ee1e Add check for max growth age special case (#1652) PurpurMC/Purpur@d4af7947 Add configurable smooth snow accumulation (#1651) PurpurMC/Purpur@51aafbc7 Final 1.21.4 Upstream (Paper) PurpurMC/Purpur@ba521eb6 read & write spawn data properly for placing spawners option PurpurMC/Purpur@751d8388 fix color signs not working properly PurpurMC/Purpur@f5a9280b Merge branch 'ver/1.21.4' into ver/1.21.5 PurpurMC/Purpur@f8450874 Updated Upstream (Paper)
This commit is contained in:
@@ -5,6 +5,8 @@ IS_EOL=false
|
||||
IS_UNSUPPORTED=false
|
||||
IS_DEV=true
|
||||
|
||||
JAR_NAME="leaf-1.21.5"
|
||||
CURRENT_TAG="ver-1.21.5"
|
||||
RELEASE_NOTES="release_notes.md"
|
||||
|
||||
# Branch name
|
||||
@@ -13,7 +15,7 @@ echo "✨Current branch: $CURRENT_BRANCH"
|
||||
|
||||
# Latest tag name
|
||||
LATEST_TAG=$(git describe --tags --abbrev=0)
|
||||
if [ -z "$LATEST_TAG" ]; then
|
||||
if [ -z $LATEST_TAG ]; then
|
||||
LATEST_TAG=$(git rev-list --max-parents=0 HEAD)
|
||||
echo "⚠️No previous release found. Using initial commit."
|
||||
else
|
||||
@@ -21,12 +23,12 @@ else
|
||||
fi
|
||||
|
||||
# Commit of the latest tag
|
||||
LAST_RELEASE_COMMIT=$(git rev-list -n 1 "$LATEST_TAG")
|
||||
LAST_RELEASE_COMMIT=$(git rev-list -n 1 $LATEST_TAG)
|
||||
echo "✨Last release commit: $LAST_RELEASE_COMMIT"
|
||||
|
||||
# Commits log
|
||||
COMMIT_LOG=$(git log "$LAST_RELEASE_COMMIT"..HEAD --pretty=format:"- [\`%h\`](https://github.com/"${GITHUB_REPO}"/commit/%H) %s (%an)")
|
||||
if [ -z "$COMMIT_LOG" ]; then
|
||||
COMMIT_LOG=$(git log $LAST_RELEASE_COMMIT..HEAD --pretty=format:"- [\`%h\`](https://github.com/${GITHUB_REPO}/commit/%H) %s (%an)")
|
||||
if [ -z $COMMIT_LOG ]; then
|
||||
COMMIT_LOG="⚠️No new commits since $LATEST_TAG."
|
||||
else
|
||||
echo "✅Commits log generated"
|
||||
@@ -45,11 +47,11 @@ echo "" >> $RELEASE_NOTES
|
||||
} >> $RELEASE_NOTES
|
||||
|
||||
# Get checksums
|
||||
file="./leaf-1.21.5-"${BUILD_NUMBER}".jar"
|
||||
if [ -f "$file" ]; then
|
||||
MD5=$(md5sum "$file" | awk '{ print $1 }')
|
||||
SHA256=$(sha256sum "$file" | awk '{ print $1 }')
|
||||
FILENAME=$(basename "$file")
|
||||
file="./$JAR_NAME-${BUILD_NUMBER}.jar"
|
||||
if [ -f $file ]; then
|
||||
MD5=$(md5sum $file | awk '{ print $1 }')
|
||||
SHA256=$(sha256sum $file | awk '{ print $1 }')
|
||||
FILENAME=$(basename $file)
|
||||
|
||||
{
|
||||
echo "| | $FILENAME |"
|
||||
@@ -66,7 +68,7 @@ else
|
||||
fi
|
||||
|
||||
# EOL warning
|
||||
if [ "$IS_EOL" = true ]; then
|
||||
if [ $IS_EOL = true ]; then
|
||||
{
|
||||
echo ""
|
||||
echo "> [!WARNING]"
|
||||
@@ -76,7 +78,7 @@ if [ "$IS_EOL" = true ]; then
|
||||
fi
|
||||
|
||||
# Unsupported warning
|
||||
if [ "$IS_UNSUPPORTED" = true ]; then
|
||||
if [ $IS_UNSUPPORTED = true ]; then
|
||||
{
|
||||
echo ""
|
||||
echo "> [!CAUTION]"
|
||||
@@ -95,6 +97,10 @@ if [ "$IS_DEV" = true ]; then
|
||||
} >> $RELEASE_NOTES
|
||||
fi
|
||||
|
||||
# Delete last tag
|
||||
gh release delete ver-1.21.5 --cleanup-tag -y -R "${GITHUB_REPO}"
|
||||
# Delete current release tag
|
||||
if git show-ref --tags $CURRENT_TAG --quiet; then
|
||||
{
|
||||
gh release delete $CURRENT_TAG --cleanup-tag -y -R "${GITHUB_REPO}"
|
||||
}
|
||||
fi
|
||||
echo "🚀Ready for release"
|
||||
|
||||
Reference in New Issue
Block a user