diff options
author | Wohlhabend <a.piri@hotmail.de> | 2021-10-16 23:59:59 +0200 |
---|---|---|
committer | Wohlhabend <a.piri@hotmail.de> | 2021-10-16 23:59:59 +0200 |
commit | 42dd089a4af357565d885c409777ffd84be5e092 (patch) | |
tree | ed5e09ee59130322b919d8cae086a6bcb82eda08 /.github | |
parent | 0ff4071b8f407a16e955219d74e304951db88d6e (diff) | |
download | Skyblocker-42dd089a4af357565d885c409777ffd84be5e092.tar.gz Skyblocker-42dd089a4af357565d885c409777ffd84be5e092.tar.bz2 Skyblocker-42dd089a4af357565d885c409777ffd84be5e092.zip |
Update to 1.2.2 + automatic write changelog in discord channel
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/buildrelease.yml | 34 |
1 files changed, 30 insertions, 4 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 }}>" + "" + "<https://hysky.de/>"
\ No newline at end of file |