From 42dd089a4af357565d885c409777ffd84be5e092 Mon Sep 17 00:00:00 2001 From: Wohlhabend Date: Sat, 16 Oct 2021 23:59:59 +0200 Subject: Update to 1.2.2 + automatic write changelog in discord channel --- .github/workflows/buildrelease.yml | 34 ++++++++++++++++++++++++++++++---- CHANGELOG.md | 8 ++++++++ build.gradle | 3 +++ gradle.properties | 2 +- 4 files changed, 42 insertions(+), 5 deletions(-) diff --git a/.github/workflows/buildrelease.yml b/.github/workflows/buildrelease.yml index 546a6174..47ecb126 100644 --- a/.github/workflows/buildrelease.yml +++ b/.github/workflows/buildrelease.yml @@ -52,14 +52,40 @@ jobs: script: | const fs = require("fs") return fs.readdirSync("build/libs/").filter(e => !e.endsWith("dev.jar") && !e.endsWith("sources.jar") && e.endsWith(".jar"))[0] - - - uses: softprops/action-gh-release@v1 + - name: Release + id: uploadrelease + uses: softprops/action-gh-release@v1 with: body: ${{ steps.read_changelog.outputs.changelog }} files: build/libs/${{ steps.fname.outputs.result }} - name: Publish to Modrinth + id: modrinth env: - MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} CHANGELOG: ${{ steps.read_changelog.outputs.changelog }} - run: ./gradlew publishModrinth \ No newline at end of file + run: ./gradlew publishModrinth + + - name: Get version tag + id: version_tag + run: | + [[ ! "$GITHUB_REF" =~ refs/tags ]] && exit + echo "::set-output name=value::${GITHUB_REF#refs/tags/}" + + - name: Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: | + "@here" + "Skyblocker ${{ steps.version_tag.outputs.value }}" + "" + "Changelog" + "```md" + "${{ steps.read_changelog.outputs.changelog }}" + "```" + "<${{ steps.uploadrelease.outputs.url }}>" + "<${{ steps.modrinth.outputs.url }}>" + "" + "" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6a7674..e23349d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# Release 1.2.2 + +Fixes +* Small status bar changes by @ExternalTime in #21 +* Fixed crash on opening color terminal with unknown color by @ExternalTime in #22 + +Full Changelog: https://github.com/LifeIsAParadox/Skyblocker/compare/v1.2.1...v1.2.2 +___ # Release 1.2.1 Fixes diff --git a/build.gradle b/build.gradle index 43ca9fe0..4054f7e5 100644 --- a/build.gradle +++ b/build.gradle @@ -109,6 +109,9 @@ task publishModrinth(type: TaskModrinthUpload) { addLoader('fabric') versionType = VersionType.RELEASE changelog = System.getenv('CHANGELOG') + doLast { + println "::set-output name=url::https://modrinth.com/mod/skyblocker-liap/version/$uploadInfo.id" + } } diff --git a/gradle.properties b/gradle.properties index a2ef164f..3b7cc302 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ clothconfig_version=5.0.38 mod_menu_version=2.0.4 # Mod Properties -mod_version = 1.2.1 +mod_version = 1.2.2 maven_group = me.xmrvizzy archives_base_name = skyblocker modrinth_id=y6DuFGwJ \ No newline at end of file -- cgit