Skip to content

Commit

Permalink
Adjust publishing things
Browse files Browse the repository at this point in the history
  • Loading branch information
CodexAdrian committed Sep 29, 2024
1 parent baf055c commit 7c628b2
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:

- name: Generate Discord Embed
run: ./gradlew injectEmbed
env:
FORGE_RELEASE_URL: ${{ steps.neoforge_release.outputs.modrinth-version }}
FABRIC_RELEASE_URL: ${{ steps.fabric_release.outputs.modrinth-version }}

- name: Upload Discord Embed
uses: tsickert/[email protected]
Expand Down
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,12 @@ resourcefulGradle {
val minecraftVersion: String by project
val version: String by project
val changelog: String = file("changelog.md").readText(Charsets.UTF_8)
val fabricLink: String? = System.getenv("FABRIC_RELEASE_URL")
val forgeLink: String? = System.getenv("FORGE_RELEASE_URL")

source.set(file("templates/embed.json.template"))
injectedValues.set(mapOf(
"minecraft" to minecraftVersion,
"version" to version,
"changelog" to StringEscapeUtils.escapeJava(changelog),
"fabric_link" to fabricLink,
"forge_link" to forgeLink,
))
}
}
Expand Down
8 changes: 6 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.1
# 1.0.7

Change internals of widgets to be more flexible for changes when extended
Add layout widget
Make list widget more flexible
Add keyboard navigation to layout and list widget
Add more utility functions
Trash can icon
55 changes: 55 additions & 0 deletions templates/embed.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"components": [
{
"type": 1,
"components": [
{
"type": 2,
"label": "Fabric",
"style": 5,
"url": "https://beehive.sh/mod/olympus/versions?l=fabric&g=1.21"
},
{
"type": 2,
"label": "NeoForge",
"style": 5,
"url": "https://beehive.sh/mod/olympus/versions?l=neoforge&g=1.21"
},
{
"type": 2,
"label": "Common",
"style": 5,
"url": "https://beehive.sh/mod/olympus/versions?l=common&g=1.21"
}
]
}
],
"embeds": [
{
"title": "Olympus",
"description": "**Changelog:**\\n${changelog}",
"color": 3935276,
"fields": [
{
"name": "Minecraft Version",
"value": "${minecraft}",
"inline": true
},
{
"name": "Mod Version",
"value": "${version}",
"inline": true
}
],
"footer": {
"text": "Follow the project on Beehive at beehive.sh/mod/olympus",
"icon_url": "https://images.teamresourceful.com/u/IDWLGs.png"
},
"thumbnail": {
"url": "http://images.teamresourceful.com/u/3CF1JE.png"
}
}
],
"username": "Terrarium Releases",
"avatar_url": "https://cdn.modrinth.com/user/6ZoP9xY8/845ab3625ed09a90b58b4ec6089c92d8e459ca09.png"
}

0 comments on commit 7c628b2

Please sign in to comment.