From a0717317b5d4e1c030bf0dd1fd432b17e4922af4 Mon Sep 17 00:00:00 2001 From: Alex Nijjar Date: Tue, 1 Aug 2023 22:59:19 -0500 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 7 +++++++ templates/embed.json.template | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 templates/embed.json.template diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0851c54..afa1138 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,9 @@ jobs: game-versions: ${{ steps.properties.outputs.minecraftVersion }} version-resolver: exact + dependencies: | + resourceful-lib | depends | * + - name: Upload Fabric Releases (Curse/Modrinth/Github) if: contains(steps.properties.outputs.enabledPlatforms, 'fabric') uses: Kir-Antipov/mc-publish@v3.2 @@ -75,6 +78,10 @@ jobs: game-versions: ${{ steps.properties.outputs.minecraftVersion }} version-resolver: exact + dependencies: | + fabric-api | depends | * + resourceful-lib | depends | * + - name: Generate Discord Embed run: ./gradlew injectEmbed diff --git a/templates/embed.json.template b/templates/embed.json.template new file mode 100644 index 0000000..319dfbd --- /dev/null +++ b/templates/embed.json.template @@ -0,0 +1,32 @@ +{ + "embeds": [ + { + "title": "Argonauts", + "description": "**Changelog:**\\n${changelog}", + "color": 5814783, + "fields": [ + { + "name": "Minecraft Version", + "value": "${minecraft}" + }, + { + "name": "Mod Version", + "value": "${version}" + }, + { + "name": "Download", + "value": "<:modrinth:1083795635414773760> [Modrinth](https://modrinth.com/mod/argonauts)\\n<:curseforge:978684543026462790> [Curseforge](https://www.curseforge.com/minecraft/mc-mods/argonauts)" + } + ], + "footer": { + "text": "Want to support us? Check out our Ko-fi! http://kofi.terrarium.earth", + "icon_url": "https://media.discordapp.net/attachments/881367981463072809/1044025688719626250/61e1116779fc0a9bd5bdbcc7_Frame_6.png" + }, + "thumbnail": { + "url": "https://cdn.discordapp.com/attachments/1094731881590833203/1106096454864486422/Argonauts_image.png" + } + } + ], + "username": "Terrarium Releases", + "avatar_url": "https://cdn.discordapp.com/avatars/955572264823300096/3c226580b871a57b6da095fea1cccf1e.webp" +} \ No newline at end of file