Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/release-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,17 @@ jobs:
- name: 🔑 Setup Keystore
if: steps.check-existing.outputs.skip-build == 'false'
run: |
# Create keystore from secrets
echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 -d > android/app/release-key.jks

# Create keystore.properties
# Create keystore.properties with base64 encoded keystore
cat > android/keystore.properties << EOF
storeFile=release-key.jks
storePassword=${{ secrets.RELEASE_STORE_PASSWORD }}
keyAlias=${{ secrets.RELEASE_KEY_ALIAS }}
keyPassword=${{ secrets.RELEASE_KEY_PASSWORD }}
# Android Release Signing Configuration
RELEASE_KEYSTORE_BASE64=${{ secrets.RELEASE_KEYSTORE_BASE64 }}
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
EOF

echo "✅ Keystore configuration created"

- name: 🔨 Build Release APK
if: steps.check-existing.outputs.skip-build == 'false'
run: |
Expand Down Expand Up @@ -343,8 +343,8 @@ jobs:
if: always()
run: |
# Remove sensitive files
rm -f android/app/release-key.jks
rm -f android/keystore.properties
rm -f android/temp-keystore.jks
echo "🧹 Cleanup completed"

- name: 📱 Post-Release Summary
Expand Down
3 changes: 3 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.application'

import java.util.Base64

// Load keystore properties
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
Expand Down