File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Snapshot"
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ snapshotVersion :
6+ description : " Snapshot version"
7+ required : true
8+
9+ jobs :
10+ release :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repo
14+ uses : actions/checkout@v2
15+
16+ - uses : actions/setup-java@v3
17+ with :
18+ distribution : ' temurin' # This is the Ubuntu Default
19+ java-version : ' 17'
20+
21+ - name : Build library
22+ run : ' bash ./gradlew clean :library:assembleRelease'
23+
24+ - name : Release library
25+ env :
26+ MOBILE_MAVENCENTRAL_USER : ${{ secrets.MOBILE_MAVENCENTRAL_USER }}
27+ MOBILE_MAVENCENTRAL_PASSWORD : ${{ secrets.MOBILE_MAVENCENTRAL_PASSWORD }}
28+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
29+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
30+ ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
31+ run : " bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }} publishNoopPublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }}
32+ --max-workers 1 closeAndReleaseStagingRepositories"
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ nexusPublishing {
66 stagingProfileId = " f7fe7699e57a"
77 username = System . getenv(" MOBILE_MAVENCENTRAL_USER" )
88 password = System . getenv(" MOBILE_MAVENCENTRAL_PASSWORD" )
9+ nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
10+ snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
911 }
1012 }
1113}
You can’t perform that action at this time.
0 commit comments