Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNijjar committed Aug 2, 2023
1 parent d30533f commit a071731
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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

Expand Down
32 changes: 32 additions & 0 deletions templates/embed.json.template
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit a071731

Please sign in to comment.