mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
add release discord webhook
This commit is contained in:
parent
5c32e819fd
commit
73fd79b9da
1 changed files with 13 additions and 0 deletions
13
.github/workflows/gradle.yml
vendored
13
.github/workflows/gradle.yml
vendored
|
|
@ -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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue