Skip to content

Commit

Permalink
ci: simplify the loading of android secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbrayo committed Jul 24, 2024
1 parent d54aed0 commit 3ec9196
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,12 @@ jobs:
sed -i "s/versionCode .*/versionCode ${{needs.get-versionCode.outputs.versionCode}}/" \
mobile/build.gradle
- uses: adnsio/[email protected]
- name: Load Android secrets
if: env.KEY_ANDROID_JKS != null
if: env.KEY_ANDROID_JKS_64 != null
env:
KEY_ANDROID_JKS: ${{ secrets.KEY_ANDROID_JKS }}
KEY_ANDROID_JKS_64: ${{ secrets.KEY_ANDROID_JKS_64 }}
run: |
printf "$KEY_ANDROID_JKS" > android.jks.key
cat android.jks.age | age -d -i android.jks.key -o android.jks
rm android.jks.key
printf "$KEY_ANDROID_JKS_64" > base64 --decode > android.jks
- name: Assemble
env:
Expand Down

0 comments on commit 3ec9196

Please sign in to comment.