Skip to content

Commit

Permalink
Gradle sometimes complains over the silliest of details
Browse files Browse the repository at this point in the history
  • Loading branch information
NickImpact committed Mar 18, 2024
1 parent 0fa67bf commit 1c9b618
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Establish README.md
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: readme
- name: Build Artifacts
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ tasks.withType<GenerateModuleMetadata> {
dependsOn(tasks["remapProductionJar"])
}

tasks.modrinth {
dependsOn(tasks.modrinthSyncBody)
}

modrinth {
token.set(System.getenv("MODRINTH_GRADLE_TOKEN"))
projectId.set("Impactor")
Expand All @@ -135,8 +139,7 @@ modrinth {

gameVersions.set(listOf(rootProject.property("minecraft").toString()))

// https://github.com/modrinth/minotaur
// TODO - Project Body Sync
syncBodyFrom.set(rootProject.file("README.md").readText(Charsets.UTF_8))
changelog.set(readChangelog())
debugMode.set(!project.isRelease())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ tasks {
val publishToDiscord = tasks.register("discord", PublishToDiscord::class)

build {
dependsOn(readme)
if(this.project.isRelease()) {
dependsOn(writeChangelog)
dependsOn(publishToDiscord)
Expand Down

0 comments on commit 1c9b618

Please sign in to comment.