Skip to content

Commit

Permalink
Fixed publishing jar and removed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LopyMine committed Oct 26, 2024
1 parent f65e6f9 commit dd35e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ jobs:
run: ./gradlew build publishMods
env:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
TEST_KEY: ${{ secrets.TEST_KEY }}
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ jar {
}
}

println providers.environmentVariable("TEST_KEY").getOrNull()
println providers.gradleProperty('TEST_KEY').getOrNull()

publishMods {
def loaders = prop("loaders").toString().split(" ")
def modrinthProjectId = prop("modrinth_id").toString()
Expand Down Expand Up @@ -446,7 +443,7 @@ def getVerifiedOrDefaultJar(String modName, String modVersion, String minecraftV
def regularFile = provider.orNull
if (regularFile == null || !regularFile.getAsFile().exists()) {
println "[PublishMods] Failed to find jar file at '${path}'! Using archive file!"
return jar.archiveFile
return remapJar.archiveFile
}
return regularFile.getAsFile()
}
Expand Down

0 comments on commit dd35e56

Please sign in to comment.