-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fixed Release Build Issue (#2712)
* feat: Fixed Release Build * Generated DependencyGuard Baseline * Updated DependencyGuard Baseline * Updated DependencyGuard Baseline
- Loading branch information
Showing
33 changed files
with
237 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
name: On Push | ||
name: Internal Or Beta Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
beta: | ||
description: 'true if this is a beta release' | ||
release_type: | ||
required: false | ||
default: 'false' | ||
default: 'internal' | ||
description: Please select the release type | ||
type: choice | ||
options: | ||
- internal | ||
- beta | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
env: | ||
SUPPLY_UPLOAD_MAX_RETRIES: 5 | ||
|
@@ -72,15 +76,15 @@ jobs: | |
path: ./**/*.apk | ||
|
||
- name: Create Version File | ||
if: github.event.inputs.beta == 'true' | ||
if: github.event.inputs.release_type == 'beta' | ||
shell: bash | ||
env: | ||
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} | ||
run: | | ||
echo $VERSION_CODE > ./androidApp/build/outputs/version_code.txt | ||
- name: Create Github Pre-Release | ||
if: github.event.inputs.beta == 'true' | ||
if: github.event.inputs.release_type == 'beta' | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: ${{ steps.rel_number.outputs.version }} | ||
|
@@ -117,6 +121,12 @@ jobs: | |
ruby-version: '3.2' | ||
bundler-cache: true | ||
|
||
- name: Install Fastlane | ||
run: | | ||
gem install bundler:2.2.27 | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
|
@@ -148,8 +158,8 @@ jobs: | |
./gradlew :androidApp:bundleRelease | ||
- name: Deploy to Play Store Internal | ||
run: bundle exec fastlane android internal | ||
run: bundle exec fastlane android deploy_internal | ||
|
||
- name: Promote Internal to Beta | ||
if: github.event.inputs.beta == 'true' | ||
run: bundle exec fastlane android beta | ||
if: github.event.inputs.release_type == 'beta' | ||
run: bundle exec fastlane android promote_to_beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
gem "fastlane" | ||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.