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/.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 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