Skip to content

Commit

Permalink
Merge pull request #678 from Web3Auth/appetize-actions
Browse files Browse the repository at this point in the history
Add Appetize Workflow for iOS and Android
  • Loading branch information
shahbaz17 authored Oct 17, 2024
2 parents db9e61c + e59e93c commit 7f53aec
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/appeitize-ios.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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"
43 changes: 43 additions & 0 deletions .github/workflows/appetize-android.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ internal/
**/.DS_Store
.settings
**/.vs
**/ios_build.tar.gz
!**/.vscode/tasks.json
!**/.vscode/settings.template.json
!**/.vscode/launch.template.json
Expand Down

0 comments on commit 7f53aec

Please sign in to comment.