Skip to content

rename script

rename script #12

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:assembleRelease
- 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}}
serviceCredentialsFile: $HOME/secrets/braintree_demo_app-eb501d54ba5f.json
groups: testers
file: Demo/build/outputs/apk/release/Demo-release-unsigned.apk