chore: actions spliting #3259
This file contains hidden or 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: sample-distribution | |
| concurrency: | |
| group: sample-distribution-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/sample-distribution.yml' | |
| - 'package/**' | |
| - 'examples/SampleApp/**' | |
| jobs: | |
| prepare_sdk: | |
| name: Prepare SDK & JS Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - uses: ./.github/actions/ruby-cache | |
| - name: Install & build SDK | |
| uses: ./.github/actions/install-and-build-sdk | |
| - name: Upload SDK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdk-build | |
| path: examples/SampleApp/** | |
| build_and_deploy_ios_testflight_qa: | |
| name: Build SampleApp iOS and Deploy-${{ github.ref == 'refs/heads/develop' }} | |
| needs: prepare_sdk | |
| runs-on: [macos-15] | |
| strategy: | |
| matrix: | |
| node-version: [24.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: sdk-build | |
| - name: Connect Bot | |
| uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.4.0' # Update as needed | |
| - uses: ./.github/actions/ruby-cache | |
| - name: Cache iOS pods | |
| uses: actions/cache@v4 | |
| with: | |
| path: examples/SampleApp/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('examples/SampleApp/ios/Podfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - name: iOS Pods setup | |
| working-directory: examples/SampleApp/ios | |
| run: | | |
| rm -rf Pods | |
| rm -f Podfile.lock | |
| rm -rf build | |
| rm -rf ~/Library/Developer/Xcode/DerivedData | |
| bundle exec pod install | |
| - name: Build and release Testflight QA | |
| working-directory: examples/SampleApp | |
| run: bundle exec fastlane ios deploy_to_testflight_qa deploy:${{ github.ref == 'refs/heads/develop' }}; | |
| env: | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
| APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} | |
| build_and_deploy_android_firebase: | |
| name: Build SampleApp Android and Deploy-${{ github.ref == 'refs/heads/develop' }} | |
| needs: prepare_sdk | |
| runs-on: ubuntu-latest | |
| env: | |
| GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.caching=false' | |
| FASTLANE_SKIP_UPDATE_CHECK: 'true' | |
| strategy: | |
| matrix: | |
| node-version: [24.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: sdk-build | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| check-latest: true | |
| - uses: ./.github/actions/ruby-cache | |
| - name: Build and deploy Android Firebase | |
| working-directory: examples/SampleApp | |
| run: bundle exec fastlane android firebase_build_and_upload deploy:${{ github.ref == 'refs/heads/develop' }}; | |
| env: | |
| ANDROID_FIREBASE_APP_ID: ${{ secrets.ANDROID_FIREBASE_APP_ID }} | |
| FIREBASE_CREDENTIALS_JSON: ${{ secrets.FIREBASE_CREDENTIALS_JSON }} |