-
Notifications
You must be signed in to change notification settings - Fork 237
36 lines (35 loc) · 1.26 KB
/
firebase_deploy_preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: Decrypt large secret
run: ./.github/executables/decrypt_secret.sh
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