Skip to content

Commit 0b08be1

Browse files
authored
fix actions file (#118)
1 parent 6ae9eb7 commit 0b08be1

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Diff for: .github/workflows/gradle.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
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
39

410
# Important Information:
511
# -It's running in ci.antmedia.cloud and Linux hardware acceleration is enabled.
@@ -212,6 +218,17 @@ jobs:
212218
files: webrtc-android-framework/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml,webrtc-android-sample-app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
213219
fail_ci_if_error: true
214220

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+
215232
clean:
216233
needs: [setup-runner, unit-tests]
217234
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)