Use debug build #14
Workflow file for this run
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: Deploy to Preview Channel | |
on: | |
push: | |
branches: | |
- paypal-app-switch-feature | |
- firebase-publish | |
jobs: | |
build_and_preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: ./.github/actions/setup | |
- name: Assemble | |
run: ./gradlew --stacktrace :demo:assembleDebug | |
- name: Create directory to store secrets | |
run: mkdir $HOME/secrets | |
- name: Decrypt GPG secret | |
run: ./.github/executables/decrypt_gpg_secret.sh | |
-p "$LARGE_SECRET_PASSPHRASE" | |
-i ./.github/files/braintree-demo-app-eb501d54ba5f.json.gpg | |
-o $HOME/secrets/braintree_demo_app-eb501d54ba5f.json | |
env: | |
LARGE_SECRET_PASSPHRASE: ${{ secrets.FIREBASE_PRIVATE_KEY_GPG_PASSPHRASE }} | |
# - name: Deploy to Firebase | |
# uses: FirebaseExtended/action-hosting-deploy@v0 | |
# with: | |
# # location of google-service.json file relative to root | |
# entryPoint : './Demo' | |
# firebaseServiceAccount: $HOME/secrets/braintree_demo_app.json | |
# expires: 30d | |
# projectId: braintree-demo-app | |
- name: Upload artifact to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.FIREBASE_APP_ID }} | |
serviceCredentialsFileContent: ${{ secrets.FIREBASE_CREDENTIAL_FILE_CONTENT }} | |
groups: testers | |
file: Demo/build/outputs/apk/debug/Demo-debug.apk |