-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from Web3Auth/appetize-actions
Add Appetize Workflow for iOS and Android
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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" |
This file contains 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
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" |
This file contains 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