Skip to content

Commit

Permalink
fix: wrong maven
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Jun 10, 2024
1 parent d625eb5 commit 2c57ff4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build & Publish
run: ./gradlew build publish publishMods --no-daemon
env:
SAPS_TOKEN: ${{ secrets.SAPS_TOKEN }}
NANITE_DEPLOY: ${{ secrets.NANITE_DEPLOY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURSE_TOKEN: ${{ secrets.CURSEFORGE_KEY }}
CURSE_TOKEN: ${{ secrets.CURSE_DEPLOY }}
36 changes: 12 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.6-SNAPSHOT" apply false
id "me.modmuss50.mod-publish-plugin" version "0.4.5"
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

architectury {
Expand All @@ -23,12 +23,12 @@ subprojects {

publishing {
repositories {
if (providers.environmentVariable("SAPS_TOKEN").isPresent()) {
if (providers.environmentVariable("NANITE_DEPLOY").isPresent()) {
maven {
url "https://maven.saps.dev/${providers.environmentVariable("SNAPSHOT").map { "snapshots" }.getOrElse("releases")}"
url "https://maven.nanite.dev/${providers.environmentVariable("SNAPSHOT").map { "snapshots" }.getOrElse("releases")}"
credentials {
username = "errormikey"
password = "${providers.environmentVariable("SAPS_TOKEN").get()}"
username = "nanite"
password = "${providers.environmentVariable("NANITE_DEPLOY").get()}"
}
}
}
Expand Down Expand Up @@ -86,6 +86,7 @@ publishMods {
accessToken = providers.environmentVariable("CURSE_TOKEN")
projectId = "${curseforge_id}"
minecraftVersions.add("${minecraft_version}")
javaVersions.add(JavaVersion.VERSION_21)
}

def modrinthOptions = modrinthOptions {
Expand All @@ -96,12 +97,8 @@ publishMods {

curseforge("curseforgeFabric") {
from(curseForgeOptions, fabricOptions)
requires {
slug = "architectury-api"
}
requires {
slug = "fabric-api"
}
requires("architectury-api")
requires("fabric-api")
}

// curseforge("curseforgeForge") {
Expand All @@ -113,20 +110,13 @@ publishMods {

curseforge("curseforgeNeoForge") {
from(curseForgeOptions, neoForge)
requires {
slug = "architectury-api"
}
requires("architectury-api")
}

modrinth("modrinthFabric") {
from(modrinthOptions, fabricOptions)
requires {
slug = "architectury-api"
}

requires {
slug = "fabric-api"
}
requires("architectury-api")
requires("fabric-api")
}

// modrinth("modrinthForge") {
Expand All @@ -138,9 +128,7 @@ publishMods {

modrinth("modrinthNeoforge") {
from(modrinthOptions, neoForge)
requires {
slug = "architectury-api"
}
requires("architectury-api")
}

github {
Expand Down

0 comments on commit 2c57ff4

Please sign in to comment.