Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Jun 15, 2024
1 parent ff612ac commit 8dbb238
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
!contains(github.event.head_commit.message, '[ciskip]')
uses: nanite/workflows/.github/workflows/[email protected]
with:
java-version: 17
java-version: 21
changelog-file: "./CHANGELOG.md"
release-to-github: false
secrets:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ jobs:
secrets:
nanite-token: ${{ secrets.NANITE_DEPLOY }}
with:
java-version: 21
use-snapshots: true
gradle-tasks: build publish
17 changes: 1 addition & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ publishMods {
modLoaders.add("fabric")
}

def forgeOptions = publishOptions {
file = project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "${project.name} Forge ${mod_version}+mc${minecraft_version}"
modLoaders.add("forge")
}

def neoOptions = publishOptions {
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "${project.name} NeoForged ${mod_version}+mc${minecraft_version}"
Expand All @@ -90,10 +84,6 @@ publishMods {
}
}

curseforge("curseforgeForge") {
from(curseForgeOptions, forgeOptions)
}

curseforge("curseforgeNeo") {
from(curseForgeOptions, neoOptions)
}
Expand All @@ -106,19 +96,14 @@ publishMods {
}
}

modrinth("modrinthForge") {
from(modrinthOptions, forgeOptions)
}

modrinth("modrinthNeo") {
from(modrinthOptions, neoOptions)
}
}

github {
file = project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile }
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
additionalFiles.from project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile }
additionalFiles.from project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
repository = "${github_repo}"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
commitish = providers.environmentVariable("GITHUB_SHA").orElse("dryRun")
Expand Down

0 comments on commit 8dbb238

Please sign in to comment.