Merge pull request #697 from Web3Auth/sfa-android-v2 #2
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
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" |