File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Snapshot builds
2+
3+ on :
4+ push :
5+ branches :
6+ - develop
7+
8+ jobs :
9+ publish :
10+ name : Snapshot build and publish
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Check out code
14+ uses : actions/checkout@v2
15+ - name : Set up JDK 11
16+ uses : actions/setup-java@v2
17+ with :
18+ distribution : adopt
19+ java-version : 11
20+ - name : Release build
21+ run : ./gradlew assemble --scan
22+ - name : Source jar and dokka
23+ run : ./gradlew androidSourcesJar javadocJar --scan
24+ - name : Publish to MavenCentral
25+ run : ./gradlew publishReleasePublicationToSonatypeRepository --scan
26+ env :
27+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
29+ SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
30+ SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
31+ SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
32+ SONATYPE_STAGING_PROFILE_ID : ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
33+ SNAPSHOT : true
You can’t perform that action at this time.
0 commit comments