Skip to content

3.0.0

3.0.0 #24

Workflow file for this run

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 }}