Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(github)/publish action #14

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat(github): action
kirill-ivanovvv committed Mar 10, 2025
commit 39b8d379626b56d6f4112e1745d3aea5053b0a71
24 changes: 24 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
default_platform(:android)

platform :android do
desc "Сборка и публикация в Google Play"
lane :deploy do
# Декодируем файлы перед сборкой
sh "../scripts/decode-secrets.sh"

# Сборка AAB
gradle(
task: "bundle",
build_type: "Release",
flavor: "prod"
)

# Подпись AAB файла
upload_to_play_store(
track: "internal",
aab: "app/build/outputs/bundle/prodRelease/app-prod-release.aab",
json_key: "app/play-account.json",
package_name: "rees46.demo_shop"
)
end
end
4 changes: 4 additions & 0 deletions scripts/decode-secrets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo "${PLAY_ACCOUNT_AS_BASE64}" | base64 --decode > android/app/play-account.json
echo "${KEYSTORE_AS_BASE64}" | base64 --decode > android/app/keystore.jks
echo "${GOOGLE_SERVICES_FILE_AS_BASE64}" | base64 --decode > android/app/google-services.json