Skip to content

Commit

Permalink
fix(ci): uses absolute path in fastfile for keystore.jks
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Nov 28, 2024
1 parent 1e2469f commit bb42f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ jobs:
# Step 8: Set up Android Keystore
- name: Set up Android Keystore
working-directory: android
run: |
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/keystore.jks
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > keystore.jks
# Step 9: Authenticate to Google Cloud
- name: Authenticate to Google Cloud
Expand Down
3 changes: 2 additions & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ default_platform :android
platform :android do
desc "Release Android app to Alpha track"
lane :release_android_alpha do
android_dir = Dir.pwd # working-directory in workflow should be set to android for this to work
gradle(
task: "bundle",
build_type: "Release",
properties: {
"android.injected.signing.store.file" => "../keystore.jks",
"android.injected.signing.store.file" => File.join(android_dir, "keystore.jks"),
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"],
"android.injected.signing.key.alias" => ENV["KEY_ALIAS"],
"android.injected.signing.key.password" => ENV["KEY_PASSWORD"]
Expand Down

0 comments on commit bb42f62

Please sign in to comment.