File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2424 NEXUS_USER : ${{ secrets.NEXUS_RELEASE_USER }}
2525 NEXUS_PASS : ${{ secrets.NEXUS_RELEASE_PASSWORD }}
2626 run : |
27- ./gradlew publishReleasePublicationToSnapshotsRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
27+ ./gradlew publishReleasePublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
2828 plugin :
2929 runs-on : [ self-hosted-org, linux ]
3030 container :
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ publishing {
88 username System . env. NEXUS_USER
99 password System . env. NEXUS_PASS
1010 }
11- url " https://nexusng.tuenti.io/repository/maven-release-private/"
11+ def releasesRepoUrl = " https://nexusng.tuenti.io/repository/maven-release-private/"
12+ def snapshotsRepoUrl = " https://nexusng.tuenti.io/repository/maven-snapshot-private/"
13+ url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
1214 }
1315 }
1416 publications {
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ publishing {
1717 username System . env. NEXUS_USER
1818 password System . env. NEXUS_PASS
1919 }
20- url " https://nexusng.tuenti.io/repository/maven-release-private/"
20+ def releasesRepoUrl = " https://nexusng.tuenti.io/repository/maven-release-private/"
21+ def snapshotsRepoUrl = " https://nexusng.tuenti.io/repository/maven-snapshot-private/"
22+ url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
2123 }
2224 }
2325 publications {
You can’t perform that action at this time.
0 commit comments