-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.63 KB
/
publish_sdks.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish SDKs
on:
release:
types: [released]
jobs:
android_publish:
name: Publish Android release
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./android
steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref:
main
- name: Prepare Sonatype Gradle properties
run: |
mkdir -p ~/.gradle
echo "${{ secrets.SONATYPE_GPG_FILE }}" > key.gpg.asc
gpg -d --passphrase "${{ secrets.SONATYPE_GPG_PASSPHRASE }}" --batch "key.gpg.asc" > "$HOME/.gradle/key.gpg"
echo "signing.keyId=${{ secrets.SONATYPE_GPG_ID }}" >> ~/.gradle/gradle.properties
echo "signing.password=${{ secrets.SONATYPE_GPG_PASSWORD }}" >> ~/.gradle/gradle.properties
echo "signing.secretKeyRingFile=$HOME/.gradle/key.gpg" >> ~/.gradle/gradle.properties
echo "sonatypeStagingProfileId=${{ secrets.SONATYPE_STAGING_PROFILE_ID }}" >> ~/.gradle/gradle.properties
- name: Publish to MavenCentral
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
iOS_publish:
name: Publish iOS release
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.4.1'
- name: Check out code
uses: actions/checkout@v2
- name: CocoaPods Release
run: pod trunk push QonversionSandwich.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}