From d42ce7e2c5d07c8b08ef41e108b477acd385aef8 Mon Sep 17 00:00:00 2001 From: glowredman Date: Sun, 9 Oct 2022 23:27:48 +0200 Subject: [PATCH] Don't execute modrinth/CF plugins if their token is not present --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b961a5e..2e5659d 100644 --- a/build.gradle +++ b/build.gradle @@ -662,7 +662,7 @@ publishing { } } -if (modrinthProjectId.size() != 0) { +if (modrinthProjectId.size() != 0 && System.getenv("MODRINTH_TOKEN") != null) { apply plugin: 'com.modrinth.minotaur' File changelogFile = new File("CHANGELOG.md") @@ -695,7 +695,7 @@ if (modrinthProjectId.size() != 0) { tasks.publish.dependsOn(tasks.modrinth) } -if (curseForgeProjectId.size() != 0) { +if (curseForgeProjectId.size() != 0 && System.getenv("CURSEFORGE_TOKEN") != null) { apply plugin: 'com.matthewprenger.cursegradle' File changelogFile = new File("CHANGELOG.md")