Skip to content

Commit faabee9

Browse files
serenibyssgithub-actions[bot]
authored andcommitted
update build script version to 1720840170
1 parent 85834cb commit faabee9

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

build.gradle

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1720106721
1+
//version: 1720840170
22
/*
33
* DO NOT CHANGE THIS FILE!
44
* Also, you may replace this file at any time if there is an update available.
@@ -1237,6 +1237,30 @@ if (cfApiKey.isPresent() || deploymentDebug.toBoolean()) {
12371237
additionalFile.changelog = changelogRaw
12381238
}
12391239
}
1240+
doLast {
1241+
// No File IDs in Debug Mode
1242+
if (!deploymentDebug.toBoolean()) {
1243+
def list = []
1244+
for (def artifact : tasks.curseforge.getUploadArtifacts()) {
1245+
list.add(artifact)
1246+
for (def additionalArtifact : artifact.getAdditionalArtifacts()) {
1247+
list.add(additionalArtifact)
1248+
}
1249+
}
1250+
def summary = "## CurseForge Build Summary (Mod ${modName} | Project ID ${curseForgeProjectId})"
1251+
for (def artifact : list) {
1252+
def fileId = artifact.getCurseFileId()
1253+
def fileName = artifact.getArtifact().getSingleFile().name
1254+
println("Uploaded File ${fileName}, With File ID: ${fileId}")
1255+
summary = summary + "\n - File: ${fileName} | File ID: ${fileId}"
1256+
}
1257+
println(summary)
1258+
def stepSummary = providers.environmentVariable("GITHUB_STEP_SUMMARY")
1259+
if (stepSummary.isPresent()) {
1260+
file(stepSummary.get()).write(summary)
1261+
}
1262+
}
1263+
}
12401264
}
12411265
tasks.curseforge.dependsOn(build)
12421266
tasks.curseforge.dependsOn('generateChangelog')

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)