Skip to content

Commit

Permalink
Update to 1.2.2 + automatic write changelog in discord channel
Browse files Browse the repository at this point in the history
  • Loading branch information
LifeIsAParadox committed Oct 16, 2021
1 parent 0ff4071 commit 42dd089
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 }}>"
""
"<https://hysky.de/>"
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42dd089

Please sign in to comment.