From ac7bf03a0525c9ef9703872516ae0e9aa9594cf6 Mon Sep 17 00:00:00 2001 From: medievalshell Date: Sat, 18 Apr 2026 12:38:44 +0200 Subject: [PATCH 1/6] Update added git action to build jar automatically with incremental release --- .github/workflows/build-release.yml | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 00000000..def0da2e --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,81 @@ +name: Build & Release JAR + +on: + push: + branches: [main] + +permissions: + contents: write + +jobs: + build-release: + runs-on: ubuntu-latest + defaults: + run: + working-directory: Emulator + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '21' + cache: maven + + - name: Bump patch version + id: bump + run: | + CURRENT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + echo "Current version: $CURRENT" + IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT" + NEW="$MAJOR.$MINOR.$((PATCH + 1))" + echo "New version: $NEW" + mvn -B versions:set -DnewVersion="$NEW" -DgenerateBackupPoms=false + echo "new_version=$NEW" >> "$GITHUB_OUTPUT" + + - name: Build JAR + run: mvn -B clean package -DskipTests + + - name: Commit bumped pom.xml + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add pom.xml + git commit -m "🆙 Bump version to ${{ steps.bump.outputs.new_version }} [skip ci]" + git push origin HEAD:main + + - name: Generate release notes from commits + working-directory: ${{ github.workspace }} + run: | + PREV_TAG=$(git tag --sort=-creatordate | head -n1 || true) + NEW_TAG="v${{ steps.bump.outputs.new_version }}" + if [ -z "$PREV_TAG" ]; then + RANGE="HEAD" + COMPARE_LINE="" + else + RANGE="${PREV_TAG}..HEAD" + COMPARE_LINE="**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${NEW_TAG}" + fi + { + echo "## What's Changed in ${NEW_TAG}" + echo "" + git log --no-merges --pretty=format:"### %s%n%n%b%n---" $RANGE + echo "" + echo "" + [ -n "$COMPARE_LINE" ] && echo "$COMPARE_LINE" + } > release_notes.md + cat release_notes.md + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ steps.bump.outputs.new_version }} + name: Release v${{ steps.bump.outputs.new_version }} + body_path: release_notes.md + files: Emulator/target/Habbo-${{ steps.bump.outputs.new_version }}-jar-with-dependencies.jar From 5c27811865511dc40b3f7f9c33dc8cee85a413d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:42:16 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=86=99=20Bump=20version=20to=204.1.2?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Emulator/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emulator/pom.xml b/Emulator/pom.xml index 7d0c83b5..3f2ead4c 100644 --- a/Emulator/pom.xml +++ b/Emulator/pom.xml @@ -6,7 +6,7 @@ com.eu.habbo Habbo - 4.1.1 + 4.1.2 UTF-8 From 22825d1d693e7b00697a50c02c9a257f8c28ae68 Mon Sep 17 00:00:00 2001 From: medievalshell Date: Sat, 18 Apr 2026 12:47:28 +0200 Subject: [PATCH 3/6] fix to not show all commits at once --- .github/workflows/build-release.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index def0da2e..f3153d7d 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -50,25 +50,22 @@ jobs: git commit -m "🆙 Bump version to ${{ steps.bump.outputs.new_version }} [skip ci]" git push origin HEAD:main - - name: Generate release notes from commits + - name: Generate release notes from latest commit working-directory: ${{ github.workspace }} + env: + NEW_TAG: v${{ steps.bump.outputs.new_version }} + TRIGGER_SHA: ${{ github.sha }} run: | PREV_TAG=$(git tag --sort=-creatordate | head -n1 || true) - NEW_TAG="v${{ steps.bump.outputs.new_version }}" - if [ -z "$PREV_TAG" ]; then - RANGE="HEAD" - COMPARE_LINE="" - else - RANGE="${PREV_TAG}..HEAD" - COMPARE_LINE="**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${NEW_TAG}" - fi { - echo "## What's Changed in ${NEW_TAG}" + echo "## What's Changed" echo "" - git log --no-merges --pretty=format:"### %s%n%n%b%n---" $RANGE + git log -1 --pretty=format:"### %s%n%n%b" "$TRIGGER_SHA" echo "" echo "" - [ -n "$COMPARE_LINE" ] && echo "$COMPARE_LINE" + if [ -n "$PREV_TAG" ]; then + echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${NEW_TAG}" + fi } > release_notes.md cat release_notes.md From 483a2918d389fe53b89afc93059241e5761dec21 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 11:07:17 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=86=99=20Bump=20version=20to=204.1.3?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Emulator/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emulator/pom.xml b/Emulator/pom.xml index 3f2ead4c..06f73489 100644 --- a/Emulator/pom.xml +++ b/Emulator/pom.xml @@ -6,7 +6,7 @@ com.eu.habbo Habbo - 4.1.2 + 4.1.3 UTF-8 From 3f47321583a240de60c2bac5a9bac8468fd3f565 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 09:01:05 +0000 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=86=99=20Bump=20version=20to=204.1.4?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Emulator/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emulator/pom.xml b/Emulator/pom.xml index 06f73489..50829731 100644 --- a/Emulator/pom.xml +++ b/Emulator/pom.xml @@ -6,7 +6,7 @@ com.eu.habbo Habbo - 4.1.3 + 4.1.4 UTF-8 From da0523a79417d10cef4118810343bd006681b0cc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 19:57:00 +0000 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=86=99=20Bump=20version=20to=204.1.5?= =?UTF-8?q?=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Emulator/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emulator/pom.xml b/Emulator/pom.xml index acdbd61e..ac1ffcb3 100644 --- a/Emulator/pom.xml +++ b/Emulator/pom.xml @@ -6,7 +6,7 @@ com.eu.habbo Habbo - 4.1.4 + 4.1.5 UTF-8