diff --git a/.github/workflows/build_mpsqa.yml b/.github/workflows/build_mpsqa.yml index b0e57d7d..b094b3cf 100644 --- a/.github/workflows/build_mpsqa.yml +++ b/.github/workflows/build_mpsqa.yml @@ -27,7 +27,7 @@ jobs: - name: Build MPS-QA and Publish to Github Maven uses: gradle/gradle-build-action@v2 with: - arguments: build publish + arguments: build publish -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}} wrapper-cache-enabled: true dependencies-cache-enabled: true dependencies-cache-key: gradle/dependency-locks/** diff --git a/build.gradle b/build.gradle index edf52c3d..589456e8 100644 --- a/build.gradle +++ b/build.gradle @@ -245,6 +245,16 @@ publishing { password = project.findProperty("github_token") ?: System.getenv("GITHUB_TOKEN") } } + if (project.hasProperty("artifacts.itemis.cloud.user") && project.hasProperty("artifacts.itemis.cloud.pw")) { + maven { + name = "ItemisNexus" + url = uri("https://artifacts.itemis.cloud/repository/maven-mps-releases") + credentials { + username = project.findProperty("artifacts.itemis.cloud.user") + password = project.findProperty("artifacts.itemis.cloud.pw") + } + } + } } publications { MPSQA(MavenPublication) {