fix publishing for users with no credentials

This commit is contained in:
Pyrbu 2023-04-24 19:11:52 +01:00
parent ef436ac9b7
commit 620b39b22d

@ -85,10 +85,12 @@ publishing {
} }
repositories { repositories {
maven { maven {
if (DIST_USERNAME != null && DIST_PASSWORD != null) {
credentials { credentials {
username DIST_USERNAME username DIST_USERNAME
password DIST_PASSWORD password DIST_PASSWORD
} }
}
url = uri("https://repo.pyr.lol/releases/") url = uri("https://repo.pyr.lol/releases/")
} }
} }