-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (22 loc) · 1.06 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish to Maven Central
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
deploy-to-maven-central:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Decrypt the artefact signing key
run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.ANDROID_SONATYPE_PRIVATE_KEY_DECRYPT_PASSWORD }}" --output secrets/secring.gpg secrets/secring.gpg.gpg
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Deploy to Maven Central live.100ms (Sonatype)
run: ./gradlew clean publishToSonatype closeAndReleaseSonatypeStagingRepository -PhmsSdkGroup="live.100ms" -PHMS_ANDROID_SDK_COMMON_VERSION_NAME="${{github.ref_name}}" -PossrhUsername="AniketKadam100ms" -PossrhPassword="${{ secrets.ANDROID_SONATYPE_PASSWORD}}" -Psigning.keyId="D5D53C52" -Psigning.password="${{ secrets.ANDROID_SONATYPE_PRIVATE_KEY_SIGNING_PASSWORD }}"