Skip to content

Merge pull request #1315 from Web3Auth/mobile-pnp-session-time-updates #6

Merge pull request #1315 from Web3Auth/mobile-pnp-session-time-updates

Merge pull request #1315 from Web3Auth/mobile-pnp-session-time-updates #6

name: Upload Flutter Android & iOS Playground build on appeitize
on:
push:
branches:
- main
paths:
- "flutter/flutter-playground/**"
defaults:
run:
working-directory: ./flutter/flutter-playground/
jobs:
build-and-upload:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "17"
cache: "gradle"
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install Dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --debug
- name: Pod Install
run: |
cd ios
pod install
- name: Build iOS simulator build
run: |
cd ios
xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -derivedDataPath build
- name: Compress iOS build
run: |
cd ios
tar -czf ios_build.tar.gz build/Build/Products/Debug-iphonesimulator
- name: Upload Android build to Appeitize
uses: appetizeio/[email protected]
with:
apiToken: ${{ secrets.APPETIZE_SECRET_KEY }}
publicKey: ${{ secrets.FLUTTER_ANDROID_PLAYGROUND_PUBLIC_KEY }}
appFile: ./flutter/flutter-playground/build/app/outputs/apk/debug/app-debug.apk
platform: "android"
- name: Upload iOS build to Appeitize
uses: appetizeio/[email protected]
with:
apiToken: ${{ secrets.APPETIZE_SECRET_KEY }}
publicKey: ${{ secrets.FLUTTER_IOS_PLAYGROUND_PUBLIC_KEY }}
appFile: ./flutter/flutter-playground/ios/ios_build.tar.gz
platform: "ios"