Skip to content

Commit

Permalink
chore: fix curse uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Dec 11, 2024
1 parent 1deb43f commit f585f2b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
with:
distribution: zulu
java-version: 16
# - name: Download MC assets
# run: ./gradlew downloadAssets || ./gradlew downloadAssets || (sleep 30s && ./gradlew downloadAssets)
# - name: Run DataGen
# run: ./gradlew runData
- name: Build and publish (release)
env:
CURSE_API: ${{ secrets.CURSE_API }}
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ dependencies {
includeLibs project(':velocity')
}

apply from: 'env-variables.gradle'

println "Branch ${ext.branch}${ext.shaRef} isRelease: '${ext.isRelease}'"

tasks.named('jar') {
Expand Down
7 changes: 1 addition & 6 deletions curse.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ task curseforge {

uploadMetadata.changelog = "# New release build\n\n" + getReleaseChangelog()
uploadMetadata.changelogType = "markdown"
uploadMetadata.releaseType = ext.isDevBranch ? "beta" : "release"
uploadMetadata.releaseType = rootProject.ext.isRelease ? "release" : "beta"
uploadMetadata.gameVersions = supportedGameVersionIds

def uploadId = uploadFile(uploadMetadata, file(jar.archiveFile), apiKey, gson)
Expand All @@ -175,9 +175,4 @@ task curseforge {
println("Curse token unspecified")
}
}
// id = project.curse_project_id
// // TODO add code to reference this but also cut the latest change logs in for the files
// changelog = "${project.github}/blob/${sha}/CHANGELOG.md"
// changelogType = 'markdown'
// releaseType = 'release'
}

0 comments on commit f585f2b

Please sign in to comment.