Skip to content

Commit

Permalink
Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed May 28, 2024
1 parent 6ec6525 commit e2c55fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ publishing {
name = "MetaborgArtifacts"
url = if (project.extra["isReleaseVersion"] as Boolean) releasesRepoUrl else snapshotsRepoUrl
credentials {
username = project.findProperty("publish.repository.metaborg.artifacts.username") as String?
password = project.findProperty("publish.repository.metaborg.artifacts.password") as String?
username = project.findProperty("publish.repository.metaborg.artifacts.username") as String? ?: System.getenv("METABORG_ARTIFACTS_USERNAME")
password = project.findProperty("publish.repository.metaborg.artifacts.password") as String? ?: System.getenv("METABORG_ARTIFACTS_PASSWORD")
}
}
}
Expand Down

0 comments on commit e2c55fc

Please sign in to comment.