From b98141609beea531465c04dbd9fca17cd3f4248c Mon Sep 17 00:00:00 2001 From: AyushBherwani1998 Date: Tue, 8 Oct 2024 23:09:56 +0530 Subject: [PATCH 1/2] add android appetize workflow --- .github/workflows/appetize-android.yaml | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/appetize-android.yaml diff --git a/.github/workflows/appetize-android.yaml b/.github/workflows/appetize-android.yaml new file mode 100644 index 00000000..888488be --- /dev/null +++ b/.github/workflows/appetize-android.yaml @@ -0,0 +1,43 @@ +name: Upload Android SFA Quick Start build on appeitize + +on: + push: + branches: + - main + paths: + - 'single-factor-auth-android/sfa-android-quick-start/**' + +defaults: + run: + working-directory: ./single-factor-auth-android/sfa-android-quick-start + +jobs: + build-and-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set Up JDK + uses: actions/setup-java@v3 + with: + distribution: "zulu" + java-version: "17" + cache: "gradle" + + - name: Set execution flag for gradlew + run: chmod +x gradlew + + - name: Change wrapper permissions + run: chmod +x ./gradlew + + - name: Build apk debug project + run: ./gradlew assembleDebug + + - name: Upload to Appeitize + uses: appetizeio/github-action-appetize@v1.0.1 + with: + apiToken: ${{ secrets.APPETIZE_SECRET_KEY }} + publicKey: ${{ secrets.ANDROID_SFA_QUICK_START }} + appFile: ./single-factor-auth-android/sfa-android-quick-start/app/build/outputs/apk/debug/app-debug.apk + platform: "android" \ No newline at end of file From 2efd232b2a5223e732f88f2b74c9d02e5b2035a9 Mon Sep 17 00:00:00 2001 From: AyushBherwani1998 Date: Tue, 8 Oct 2024 23:23:19 +0530 Subject: [PATCH 2/2] add ios appetize action --- .github/workflows/appeitize-ios.yaml | 32 ++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/appeitize-ios.yaml diff --git a/.github/workflows/appeitize-ios.yaml b/.github/workflows/appeitize-ios.yaml new file mode 100644 index 00000000..b0fff224 --- /dev/null +++ b/.github/workflows/appeitize-ios.yaml @@ -0,0 +1,32 @@ +name: Upload iOS SFA Quick Start build on appeitize + +on: + push: + branches: + - main + paths: + - "single-factor-auth-ios/sfa-ios-quick-start/**" + +defaults: + run: + working-directory: ./single-factor-auth-ios/sfa-ios-quick-start/ + +jobs: + build-and-upload: + runs-on: macos-latest + steps: + - name: Build iOS simulator build + run: | + xcodebuild -scheme ios-firebase-example -sdk iphonesimulator -derivedDataPath build + + - name: Compress iOS build + run: | + tar -czf ios_build.tar.gz build/Build/Products/Debug-iphonesimulator + + - name: Upload iOS build to Appeitize + uses: appetizeio/github-action-appetize@v1.0.1 + with: + apiToken: ${{ secrets.APPETIZE_SECRET_KEY }} + publicKey: ${{ secrets.IOS_SFA_QUICK_START_PUBLIC_KEY }} + appFile: ./single-factor-auth-ios/sfa-ios-quick-start/ios_build.tar.gz + platform: "ios" diff --git a/.gitignore b/.gitignore index c7b40d1f..eb02b0d8 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ internal/ **/.DS_Store .settings **/.vs +**/ios_build.tar.gz !**/.vscode/tasks.json !**/.vscode/settings.template.json !**/.vscode/launch.template.json