File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1- name : Publish to OSSRH
1+ name : Build and Publish to GitHub Packages
22
33on :
44 push :
@@ -33,23 +33,25 @@ jobs:
3333 working-directory : ./src/AndroidClient
3434 run : ./gradlew client:build
3535
36- - name : Build and Publish
36+ - name : Build and Publish Client
3737 env :
3838 USERNAME_GITHUB : ${{ github.actor }}
3939 TOKEN_GITHUB : ${{ secrets.GITHUB_TOKEN }}
40+ VERSION_SUFFIX : ${{ github.run_number }}
4041 working-directory : ./src/AndroidClient
41- run : ./gradlew client:publishAllPublicationsToGitHubPackagesRepository
42+ run : ./gradlew client:publishAllPublicationsToGitHubPackagesRepository -PversionSuffix=$VERSION_SUFFIX
4243
4344 - name : Build android
4445 working-directory : ./src/AndroidClient
4546 run : ./gradlew android:build
4647
47- - name : Build and Publish
48- working-directory : ./src/AndroidClient
48+ - name : Build and Publish Android
4949 env :
5050 USERNAME_GITHUB : ${{ github.actor }}
5151 TOKEN_GITHUB : ${{ secrets.GITHUB_TOKEN }}
52- run : ./gradlew android:publishAllPublicationsToGitHubPackagesRepository
52+ VERSION_SUFFIX : ${{ github.run_number }}
53+ working-directory : ./src/AndroidClient
54+ run : ./gradlew android:publishAllPublicationsToGitHubPackagesRepository -PversionSuffix=$VERSION_SUFFIX
5355
5456# env:
5557# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ apply plugin: 'maven-publish'
55// Define the version and group for the Maven package
66version = " 1.0.50"
77group = " net.servicestack"
8+
9+ if (project. hasProperty(' versionSuffix' )) {
10+ version = " ${ version} -${ versionSuffix} "
11+ }
12+
813// Specify dependencies
914dependencies {
1015 implementation ' com.google.code.gson:gson:2.8.9'
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ apply plugin: 'maven-publish'
66version = " 1.0.50"
77group = " net.servicestack"
88
9+ if (project. hasProperty(' versionSuffix' )) {
10+ version = " ${ version} -${ versionSuffix} "
11+ }
12+
13+
914// Specify dependencies
1015dependencies {
1116 implementation ' com.google.code.gson:gson:2.8.9'
You can’t perform that action at this time.
0 commit comments