forked from akai/readest
chore: add fastlane action to release to Google Play (#1554)
This commit is contained in:
@@ -38,3 +38,11 @@ echo "✅ Updated $PROPERTIES_FILE"
|
||||
|
||||
echo "🚀 Running: pnpm tauri android build"
|
||||
pnpm tauri android build
|
||||
|
||||
source .env.google-play.local
|
||||
if [[ -z "$GOOGLE_PLAY_JSON_KEY_FILE" ]]; then
|
||||
echo "❌ GOOGLE_PLAY_JSON_KEY_FILE is not set"
|
||||
exit 1
|
||||
fi
|
||||
cd ../../
|
||||
fastlane android upload_production
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
package_name(ENV["PACKAGE_NAME"])
|
||||
json_key_file(ENV["GOOGLE_PLAY_JSON_KEY_FILE"])
|
||||
@@ -0,0 +1,44 @@
|
||||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
aab_file = "./apps/readest-app/src-tauri/gen/android/app/build/outputs/bundle/universalRelease/app-universal-release.aab"
|
||||
|
||||
desc "Upload AAB to Google Play Production"
|
||||
lane :upload_production do
|
||||
upload_to_play_store(
|
||||
aab: aab_file,
|
||||
track: "production",
|
||||
skip_upload_apk: true,
|
||||
skip_upload_metadata: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
skip_upload_changelogs: true
|
||||
)
|
||||
end
|
||||
|
||||
desc "Upload AAB to Google Play Internal Testing"
|
||||
lane :upload_internal do
|
||||
upload_to_play_store(
|
||||
aab: aab_file,
|
||||
track: "internal",
|
||||
skip_upload_apk: true,
|
||||
skip_upload_metadata: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
skip_upload_changelogs: true
|
||||
)
|
||||
end
|
||||
|
||||
desc "Upload AAB to Google Play Beta"
|
||||
lane :upload_beta do
|
||||
upload_to_play_store(
|
||||
aab: aab_file,
|
||||
track: "beta",
|
||||
skip_upload_apk: true,
|
||||
skip_upload_metadata: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
skip_upload_changelogs: true
|
||||
)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,48 @@
|
||||
fastlane documentation
|
||||
----
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||
|
||||
# Available Actions
|
||||
|
||||
## Android
|
||||
|
||||
### android upload_production
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android upload_production
|
||||
```
|
||||
|
||||
Upload AAB to Google Play Production
|
||||
|
||||
### android upload_internal
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android upload_internal
|
||||
```
|
||||
|
||||
Upload AAB to Google Play Internal Testing
|
||||
|
||||
### android upload_beta
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android upload_beta
|
||||
```
|
||||
|
||||
Upload AAB to Google Play Beta
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
|
||||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
||||
|
||||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
||||
Reference in New Issue
Block a user