5.1.6 #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_TOKEN: ${{ secrets.OSSRH_TOKEN }} | |
OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} | |
iOS_publish: | |
name: Publish iOS release | |
runs-on: macos-latest | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.3.0' | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: CocoaPods Release | |
run: pod trunk push --allow-warnings QonversionSandwich.podspec | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |