diff --git a/build.gradle b/build.gradle index 8940ca6..34f56a6 100644 --- a/build.gradle +++ b/build.gradle @@ -85,9 +85,11 @@ publishing { } repositories { maven { - credentials { - username DIST_USERNAME - password DIST_PASSWORD + if (DIST_USERNAME != null && DIST_PASSWORD != null) { + credentials { + username DIST_USERNAME + password DIST_PASSWORD + } } url = uri("https://repo.pyr.lol/releases/") }