File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Android SDK CI
2
- on : [pull_request]
2
+ on :
3
+ push :
4
+ branches :
5
+ - master # Runs after PR is merged (push to master)
6
+ pull_request :
7
+ branches :
8
+ - master # Runs when a PR is opened/updated targeting master
3
9
4
10
# Important Information:
5
11
# -It's running in ci.antmedia.cloud and Linux hardware acceleration is enabled.
@@ -212,6 +218,17 @@ jobs:
212
218
files : webrtc-android-framework/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml,webrtc-android-sample-app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
213
219
fail_ci_if_error : true
214
220
221
+ - name : Deploy to Sonatype
222
+ # deploy only in master branches
223
+ if : github.ref == 'refs/heads/master'
224
+ run : ./gradlew publish
225
+ env :
226
+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
227
+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
228
+ SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
229
+ SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
230
+ SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
231
+
215
232
clean :
216
233
needs : [setup-runner, unit-tests]
217
234
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments