Skip to content

Commit

Permalink
Merge pull request #2706 from niyajali/fix-fastlane-config
Browse files Browse the repository at this point in the history
Attempt#7 - Fixing Release Workflow Error
  • Loading branch information
niyajali authored Sep 7, 2024
2 parents 7711aea + 8378a98 commit c788acd
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ jobs:
./gradlew :androidApp:bundleRelease
- name: Deploy to Play Store Internal
run: bundle exec fastlane android deploy_internal
run: bundle exec fastlane android internal

- name: Promote Internal to Beta
if: github.event.inputs.beta == 'true'
run: bundle exec fastlane android promote_to_beta
run: bundle exec fastlane android beta
File renamed without changes.
2 changes: 1 addition & 1 deletion fastlane/AppFile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("app/playStorePublishServiceCredentialsFile.json")
json_key_file("androidApp/playStorePublishServiceCredentialsFile.json")
package_name("org.mifos.mobile") # e.g. org.mifos.mobile
33 changes: 33 additions & 0 deletions fastlane/FastFile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,37 @@ platform :android do
)
end

desc "Deploy internal tracks to Google Play"
lane :internal do
upload_to_play_store(
track: 'internal',
aab: 'androidApp/build/outputs/bundle/androidApp-release.aab',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
)
end

desc "Promote internal tracks to beta on Google Play"
lane :beta do
upload_to_play_store(
track: 'internal',
track_promote_to: 'beta',
skip_upload_changelogs: true,
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
)
end

desc "Promote beta tracks to production on Google Play"
lane :production do
supply(
track: 'beta',
track_promote_to: 'production',
skip_upload_changelogs: true,
sync_image_upload: true,
)
end

end
24 changes: 24 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ Promote internal tracks to beta on Google Play

Promote beta tracks to production on Google Play

### android internal

```sh
[bundle exec] fastlane android internal
```

Deploy internal tracks to Google Play

### android beta

```sh
[bundle exec] fastlane android beta
```

Promote internal tracks to beta on Google Play

### android production

```sh
[bundle exec] fastlane android production
```

Promote beta tracks to production on Google Play

----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
Expand Down

0 comments on commit c788acd

Please sign in to comment.