Skip to content

Release

Release #3

Workflow file for this run

name: 'Release'
on:
workflow_dispatch:
push:
tags:
- '!**-beta**'
- '**'
# make sure to have only one job from the same "trigger" at any time
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
ios:
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- run: ./gradlew podPublishXCFramework
- uses: actions/upload-artifact@v4
with:
name: SPMobileCore.xcframework
path: ./core/build/cocoapods/publish/release/SPMobileCore.xcframework
android:
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Add Gradle Properties
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
testVar: ${{ vars.TEST_VAR }}
run: |
echo "testVar=$TEST_VAR"
echo "ossrhUsername=$OSSRH_USERNAME" >> gradle.properties
echo "ossrhPassword=$OSSRH_PASSWORD" >> gradle.properties
echo "signingKey=$SIGNING_KEY" >> gradle.properties
echo "signingPassword=$SIGNING_PASSWORD" >> gradle.properties
- run: ./gradlew publish