Skip to content

Commit

Permalink
fix: Decode keystore before building
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyESP committed Nov 29, 2024
1 parent 11b079b commit 7958fcc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# From https://github.com/JunkFood02/Seal
name: Android CI

on:
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
build-debug:
name: Build FOSS APKs
Expand Down Expand Up @@ -34,18 +33,16 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

#1
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
ENCODED_KEYSTORE_STRING: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
run: |
base64 -d <<< $ENCODED_STRING > ./keystore.jks
base64 -d <<< $ENCODED_KEYSTORE_STRING > ./keystore.jks
echo "RELEASE_STORE_FILE=$(realpath ./keystore.jks)" >> $GITHUB_ENV
- name: Build with Gradle
env:
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
SIGNING_KEY_STORE_PATH: ${{ env.RELEASE_STORE_FILE }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
Expand All @@ -56,4 +53,4 @@ jobs:
with:
name: release-artifacts
paths: |
app/build/outputs/apk/release/
app/build/outputs/apk/release/

0 comments on commit 7958fcc

Please sign in to comment.