Add hook for future hands off releasing
@@ -48,3 +48,22 @@ jobs:
prerelease: ${{ contains(github.ref, "BETA") || contains(github.ref, "ALPHA") || contains(github.ref, "RC") || contains(github.ref, "PR") }}
body_path: output/changelog.md
files: output/*.jar
+ - name: Get tag
+ id: tagval
+ uses: mad9000/actions-find-and-replace-string@2
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ source: ${{ github.ref }}
+ find: 'ref/tags/'
+ replace: ''
+ - name: Notify Discord
+ uses: sarisia/actions-status-discord@v1
+ if: startsWith(github.ref, 'refs/tags/')
+ env:
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+ with:
+ nodetail: true
+ title: Nucleus ${{ tagval.outputs.value }} has been released!
+ description: 'Download it from Ore by clicking here!'
+ url: https://ore.spongepowered.org/Nucleus/Nucleus/versions/${{ tagval.outputs.value }}
+ color: 0x00ff40
\ No newline at end of file
