Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Mar 9, 2024
1 parent a032d12 commit 340e5c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"CENTRAL_MAVEN_PASSWORD": "${{ secrets.CENTRAL_MAVEN_PASSWORD }}",
"GPG_SIGNING_KEY": "${{ secrets.GPG_SIGNING_KEY }}",
"GPG_KEY_PASSWORD": "${{ secrets.GPG_KEY_PASSWORD }}",
"CURSEFORGE_TOKEN": "${{ secrets.CURSEFORGE_TOKEN }}",
"MODRINTH_TOKEN": "${{ secrets.MODRINTH_TOKEN }}"
"CURSEFORGE_KEY": "${{ secrets.CURSEFORGE_KEY }}",
"MODRINTH_KEY": "${{ secrets.MODRINTH_KEY }}"
}
},
{
Expand All @@ -58,8 +58,8 @@
"CENTRAL_MAVEN_PASSWORD": "${{ secrets.CENTRAL_MAVEN_PASSWORD }}",
"GPG_SIGNING_KEY": "${{ secrets.GPG_SIGNING_KEY }}",
"GPG_KEY_PASSWORD": "${{ secrets.GPG_KEY_PASSWORD }}",
"CURSEFORGE_TOKEN": "${{ secrets.CURSEFORGE_TOKEN }}",
"MODRINTH_TOKEN": "${{ secrets.MODRINTH_TOKEN }}"
"CURSEFORGE_KEY": "${{ secrets.CURSEFORGE_KEY }}",
"MODRINTH_KEY": "${{ secrets.MODRINTH_KEY }}"
}
},
{
Expand All @@ -74,8 +74,8 @@
"CENTRAL_MAVEN_PASSWORD": "${{ secrets.CENTRAL_MAVEN_PASSWORD }}",
"GPG_SIGNING_KEY": "${{ secrets.GPG_SIGNING_KEY }}",
"GPG_KEY_PASSWORD": "${{ secrets.GPG_KEY_PASSWORD }}",
"CURSEFORGE_TOKEN": "${{ secrets.CURSEFORGE_TOKEN }}",
"MODRINTH_TOKEN": "${{ secrets.MODRINTH_TOKEN }}"
"CURSEFORGE_KEY": "${{ secrets.CURSEFORGE_KEY }}",
"MODRINTH_KEY": "${{ secrets.MODRINTH_KEY }}"
}
}
]
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ managedVersioning {
secret('CENTRAL_MAVEN_PASSWORD')
secret('GPG_SIGNING_KEY')
secret('GPG_KEY_PASSWORD')
secret('CURSEFORGE_TOKEN')
secret('MODRINTH_TOKEN')
secret('CURSEFORGE_KEY')
secret('MODRINTH_KEY')
}
}
}
Expand Down Expand Up @@ -259,11 +259,11 @@ def mcVersion() {

import net.darkhax.curseforgegradle.TaskPublishCurseForge

if (System.getenv('CURSEFORGE_TOKEN')) {
if (System.getenv('CURSEFORGE_KEY')) {
tasks.register('curseforge', TaskPublishCurseForge) {
dependsOn tasks.fullJar
disableVersionDetection()
apiToken = System.getenv('CURSEFORGE_TOKEN')
apiToken = System.getenv('CURSEFORGE_KEY')
def projectId = '661517'
def mainFile = upload(projectId, tasks.fullJar)
mainFile.displayName = "gml-$project.version"
Expand All @@ -274,10 +274,10 @@ if (System.getenv('CURSEFORGE_TOKEN')) {
}
}

if (System.getenv('MODRINTH_TOKEN')) {
if (System.getenv('MODRINTH_KEY')) {
modrinth {
detectLoaders.set(false)
token = System.getenv('MODRINTH_TOKEN')
token = System.getenv('MODRINTH_KEY')
projectId = 'zg2tT2Vu'
versionNumber = "$project.version"
versionType = "${project.release_type}"
Expand Down

0 comments on commit 340e5c0

Please sign in to comment.