File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,37 @@ jobs:
49
49
name : sample-2
50
50
path : " sample-app-2/build/outputs/apk/"
51
51
52
- tag :
52
+ deploy :
53
53
runs-on : ubuntu-latest
54
54
needs : check
55
55
56
+ steps :
57
+ - uses : actions/checkout@v1
58
+ - name : Cache gradle dependencies
59
+ uses : actions/cache@v1
60
+ with :
61
+ path : ~/.gradle
62
+ key : ${{ runner.os }}-gradle${{ hashFiles('gradle/wrapper/gradle-wrapper.properties')}}-${{ hashFiles('gradle.properties')}}
63
+ restore-keys : |
64
+ ${{ runner.os }}-gradle${{ hashFiles('gradle/wrapper/gradle-wrapper.properties')}}-
65
+ ${{ runner.os }}-
66
+ - name : set up JDK 1.8
67
+ uses : actions/setup-java@v1
68
+ with :
69
+ java-version : 1.8
70
+
71
+ - name : Publish to maven
72
+ env :
73
+ sonatypeUsername : ${{ secrets.sonatypeUsername }}
74
+ sonatypePassword : ${{ secrets.sonatypePassword }}
75
+ signingKey : ${{ secrets.signingPrivateKey }}
76
+ signingPassword : ${{ secrets.signingPrivateKeyPassword }}
77
+ run : ./gradlew publishAarReleasePublicationToMavenCentralRepository closeAndReleaseRepository "-PsonatypeUsername=$sonatypeUsername" "-PsonatypePassword=$sonatypePassword" "-PinMemorySigningKey=$signingKey" "-PinMemoryKeyPassword=$signingPassword" --no-daemon
78
+
79
+ tag :
80
+ runs-on : ubuntu-latest
81
+ needs : deploy
82
+
56
83
steps :
57
84
- uses : actions/checkout@v1
58
85
- name : Add tag
66
93
with :
67
94
github_token : ${{ secrets.GITHUB_TOKEN }}
68
95
tags : true
96
+
You can’t perform that action at this time.
0 commit comments