Skip to content

Commit

Permalink
chore: keystore decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Apr 9, 2024
1 parent 5cb243f commit b25e06d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
required: true
firebase-app-id:
required: true
firebase-token:
required: true
relay-url:
description: 'WalletConnect Relay URL'
required: false
Expand All @@ -34,6 +36,10 @@ on:
required: true
secrets-file:
required: true
keystore-name:
required: true
keystore:
required: true

jobs:
build:
Expand Down Expand Up @@ -66,7 +72,8 @@ jobs:
- run: touch ${{ inputs.path }}/.env.${{ inputs.release-type }} && echo "ENV_PROJECT_ID=${{ secrets.project-id }}\nENV_RELAY_URL=${{ secrets.relay-url }}\nENV_SENTRY_DSN=${{ secrets.sentry-dns }}\nENV_SENTRY_TAG=${{ inputs.release-type }}" >> ${{ inputs.path }}/.env.${{ inputs.release-type }}
- run: touch ${{ inputs.path }}/android/sentry.properties && echo "${{ secrets.sentry-file }}" >> ${{ inputs.path }}/android/sentry.properties
- run: touch ${{ inputs.path }}/android/secrets.properties && echo "${{ secrets.secrets-file }}" >> ${{ inputs.path }}/android/secrets.properties
- run: touch ${{ inputs.path }}/android/app/${{ secrets.WC_INTERNAL_KEYSTORE_NAME }}.keystore && echo "${{ secrets.WC_INTERNAL_KEYSTORE }}" >> ${{ inputs.path }}/android/app/${{ secrets.WC_INTERNAL_KEYSTORE_NAME }}.keystore
- run: touch keystore.b64 && echo "${{ secrets.keystore }}" >> keystore.b64
- run: base64 -d --input keystore.b64 --output ${{ inputs.path }}/android/app/${{ secrets.keystore-name }}.keystore

- name: Build APK
run: cd ${{ inputs.path }} && yarn install && yarn run android:build:internal
Expand All @@ -75,7 +82,7 @@ jobs:
uses: w9jds/setup-firebase@main
with:
tools-version: 13.0.1
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
firebase_token: ${{ secrets.firebase-token }}

- name: Upload APK
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-dapp-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ jobs:
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
secrets-file: ${{ secrets.W3M_WAGMI_ANDROID_SECRETS }}
firebase-app-id: ${{ secrets.W3M_WAGMI_ANDROID_INTERNAL_FIREBASE_APP_ID }}
firebase-token: ${{ secrets.FIREBASE_TOKEN }}
keystore-name: ${{ secrets.WC_INTERNAL_KEYSTORE_NAME }}
keystore: ${{ secrets.WC_INTERNAL_KEYSTORE }}

0 comments on commit b25e06d

Please sign in to comment.