Skip to content

Commit

Permalink
download crashlytics json file
Browse files Browse the repository at this point in the history
  • Loading branch information
duje-begonja-rdx committed Nov 7, 2023
1 parent 1e42dc9 commit 0032191
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ jobs:
secret_name: "github-actions/radixdlt/babylon-wallet-android/gpr-credentials"
parse_json: true

- name: Fetch Firebase App ID
uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
role_name: '${{ secrets.ANDROID_WALLET_SECRETS_READ_IAM_ROLE }}'
app_name: 'babylon-wallet-android'
step_name: 'push-app-id'
secret_prefix: 'GH'
secret_name: "github-actions/radixdlt/babylon-wallet-android/firebase/secrets"
parse_json: true

- name: Decode Firebase Crashlytics json
uses: timheuer/base64-to-file@48657ba25c726c2e3dcf02efa3639fff9b3d587e
id: crashlytics_credentials
with:
fileName: "google-services.json"
fileDir: "app/"
encodedString: ${{ env.GH_CRASHLYTICS_GOOGLE_SERVICES_JSON_FILE_BASE64 }}

- name: "Run unit tests"
run: ./gradlew testDebugUnitTest
env:
Expand Down Expand Up @@ -156,6 +174,24 @@ jobs:
secret_name: "github-actions/radixdlt/babylon-wallet-android/sonar-token"
parse_json: true

- name: Fetch Firebase App ID
uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
role_name: '${{ secrets.ANDROID_WALLET_SECRETS_READ_IAM_ROLE }}'
app_name: 'babylon-wallet-android'
step_name: 'push-app-id'
secret_prefix: 'GH'
secret_name: "github-actions/radixdlt/babylon-wallet-android/firebase/secrets"
parse_json: true

- name: Decode Firebase Crashlytics json
uses: timheuer/base64-to-file@48657ba25c726c2e3dcf02efa3639fff9b3d587e
id: crashlytics_credentials
with:
fileName: "google-services.json"
fileDir: "app/"
encodedString: ${{ env.GH_CRASHLYTICS_GOOGLE_SERVICES_JSON_FILE_BASE64 }}

- name: Export vars
run: |
echo "GPR_USER=${{ env.GH_GPR_USER }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -207,6 +243,24 @@ jobs:
secret_name: "github-actions/radixdlt/babylon-wallet-android/gpr-credentials"
parse_json: true

- name: Fetch Firebase App ID
uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
role_name: '${{ secrets.ANDROID_WALLET_SECRETS_READ_IAM_ROLE }}'
app_name: 'babylon-wallet-android'
step_name: 'push-app-id'
secret_prefix: 'GH'
secret_name: "github-actions/radixdlt/babylon-wallet-android/firebase/secrets"
parse_json: true

- name: Decode Firebase Crashlytics json
uses: timheuer/base64-to-file@48657ba25c726c2e3dcf02efa3639fff9b3d587e
id: crashlytics_credentials
with:
fileName: "google-services.json"
fileDir: "app/"
encodedString: ${{ env.GH_CRASHLYTICS_GOOGLE_SERVICES_JSON_FILE_BASE64 }}

- name: "Build"
run: |
./gradlew assembleDebug
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ jobs:
fileName: "service_account.json"
encodedString: ${{ env.GH_GOOGLE_SERVICE_ACCOUNT_JSON_FILE_BASE64 }}

- name: Decode Firebase Crashlytics json
uses: timheuer/base64-to-file@48657ba25c726c2e3dcf02efa3639fff9b3d587e
id: crashlytics_credentials
with:
fileName: "google-services.json"
fileDir: ".app/"
encodedString: ${{ env.GH_CRASHLYTICS_GOOGLE_SERVICES_JSON_FILE_BASE64 }}

- name: Fetch GPR credentials
uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
Expand Down

0 comments on commit 0032191

Please sign in to comment.