Skip to content

Commit

Permalink
fix(ci): add json key
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Nov 28, 2024
1 parent 95118a4 commit d4c6ba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ jobs:
KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
GRADLE_USER_HOME: ${{ runner.temp }}/.gradle
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }}
run: bundle exec fastlane release_android_alpha
#GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }} # This is not supported by fastlane, we need to replace it with PLAY_STORE_JSON_KEY in the future.
PLAY_STORE_JSON_KEY: ${{ secrets.PLAY_STORE_SERVICE_ACCOUNT_JSON }}
run: |
echo "$PLAY_STORE_JSON_KEY" > play-store-key.json
bundle exec fastlane release_android_alpha
# Job 2: iOS Build and Upload (runs on macOS)
build_ios:
Expand Down
2 changes: 1 addition & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ platform :android do
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
json_key: ENV["GOOGLE_APPLICATION_CREDENTIALS"]
json_key: File.join(android_dir, "play-store-key.json")
)
end
end

0 comments on commit d4c6ba5

Please sign in to comment.