Skip to content

Commit

Permalink
Publish artefacts to itemis nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderpann committed Jul 6, 2023
1 parent 47d676a commit 16ea23c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_mpsqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand Down
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16ea23c

Please sign in to comment.