add release discord webhook

This commit is contained in:
alexcrea 2026-01-12 03:13:49 +01:00
parent 5c32e819fd
commit 73fd79b9da
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -124,3 +124,16 @@ jobs:
env: env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }} HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
run: ./gradlew publishAllPublicationsToHangar --stacktrace run: ./gradlew publishAllPublicationsToHangar --stacktrace
- name: Send release note to discord
if: ${{ github.event_name == 'release' && github.repository_owner == 'alexcrea' && success() }}
uses: tsickert/discord-webhook@v7.0.0
with:
webhook-url: ${{ secrets.RELEASE_WEBHOOK_URL }}
content: |
${{ github.event.release.prerelease == false && '<@&1338546156325568642>' || '<@&1352296092989001768>' }}
# New ${{ github.event.release.prerelease == false && '' || 'beta' }} version of custom anvil ! <:CustomAnvil:1262550667986342001>([Modrinth](https://modrinth.com/plugin/customanvil), [Hangar](https://hangar.papermc.io/alexcrea/CustomAnvil) links) and [GitHub](${{ github.event.release.html_url }} links
-# note: automated release. spigot and modrinth are not uploaded yet. it is available in hangar and github
${{ env.RELEASE_CHANGELOG }}