Skip to content

Commit bb32f1a

Browse files
committed
ci: add extra token for legacy package publication
1 parent be26c56 commit bb32f1a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use tag as version
2828
run: echo "${GITHUB_REF#refs/*/}" > version.txt
2929
- name: Build and Publish Artifacts
30-
run: ./gradlew build publish -PciBuild=true -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}} -Pgpr.user=${{ github.actor }} -Pgpr.key=${{ secrets.GITHUB_TOKEN }}
30+
run: ./gradlew build publish -PciBuild=true -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}} -Pgpr.user=${{ github.actor }} -Pgpr.key=${{ secrets.GITHUB_TOKEN }} -Pgpr.universalkey=${{ secrets.GHP_UNIVERSAL_PUBLISH_TOKEN }}
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.ARTIFACTS_ITEMIS_CLOUD_NPM_TOKEN }}
3333
- name: Set up QEMU

build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,16 @@ subprojects {
6969
"model-server",
7070
"model-server-api")){
7171
url = uri("https://maven.pkg.github.com/modelix/modelix")
72+
credentials {
73+
username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
74+
password = project.findProperty("gpr.universalkey") as? String ?: System.getenv("GHP_UNIVERSAL_TOKEN")
75+
}
7276
} else {
7377
url = uri("https://maven.pkg.github.com/modelix/modelix.core")
74-
}
75-
credentials {
76-
username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
77-
password = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
78+
credentials {
79+
username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
80+
password = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
81+
}
7882
}
7983
}
8084
}

0 commit comments

Comments
 (0)