Skip to content

Commit dfe5da7

Browse files
committed
[CI] Gametests, Announcer Webhook
1 parent 4a8f5e4 commit dfe5da7

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/workflows/_announce-latest-build.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,19 @@ jobs:
8787
name: release
8888
path: .
8989

90+
- name: Announce Timestamp
91+
id: timestamp
92+
run: echo "buildTimestamp=$(date --iso-8601=seconds)" >> $GITHUB_OUTPUT
93+
9094
- name: Announce Release
91-
uses: compactmods/[email protected]
92-
env:
93-
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
95+
uses: tsickert/[email protected]
9496
with:
95-
filename: ${{ needs.get-package-info.outputs.jarFile }}
96-
channel: ${{ secrets.NIGHTLY_CHANNEL_ID }}
97-
modName: Compact Machines
98-
modVersion: ${{ needs.get-package-info.outputs.version }}
99-
thumbnail: https://media.forgecdn.net/avatars/10/602/635460270800375500.png
100-
mcVersion: ${{ needs.get-package-info.outputs.mcVersion }}
97+
webhook-url: ${{ secrets.DISCORD_NIGHTLY_WEBHOOK }}
98+
avatar-url: "https://compactmods.dev/personal-shrinking-device.png"
99+
content: "**New Version Available: Compact Machines v${{ needs.get-package-info.outputs.version }}**"
100+
filename: ${{ fromJson(steps.info.outputs.latestJson)[0].name }}
101+
embed-title: "**Mod File Information**"
102+
embed-description: "Filename: ${{ fromJson(steps.info.outputs.latestJson)[0].name}}"
103+
embed-url: "https://www.curseforge.com/minecraft/mc-mods/compact-machines"
104+
embed-thumbnail-url: "https://media.forgecdn.net/avatars/thumbnails/10/602/64/64/635460270800375500.png"
105+
embed-timestamp: ${{ steps.timestamp.outputs.buildTimestamp }}

neoforge-main/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var envVersion: String = System.getenv("VERSION") ?: "9.9.9"
88
if (envVersion.startsWith("v"))
99
envVersion = envVersion.trimStart('v')
1010

11-
val isRelease: Boolean = (System.getenv("RELEASE") ?: "false").equals("true", true)
1211
val modId: String = "compactmachines"
1312

1413
val coreApi = project(":core-api")
@@ -131,7 +130,7 @@ neoForge {
131130
type = "gameTestServer"
132131
gameDirectory.set(file("runs/gametest"))
133132

134-
systemProperty("neoforge.enabledGameTestNamespaces", listOf(modId, modId + "_test").joinToString(","))
133+
systemProperty("neoforge.enabledGameTestNamespaces", modId)
135134
environment.put("CM_TEST_RESOURCES", file("src/test/resources").path)
136135
environment.put("CM_GAMETEST_ENABLED", "true")
137136

0 commit comments

Comments
 (0)