Skip to content

Commit

Permalink
Update version code stored in env
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Nov 22, 2024
1 parent a2dcfbd commit c168e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:

- name: Get Android native version
id: getAndroidVersion
run: echo "VERSION_CODE=$(grep -o 'versionCode\s\+[0-9]\+' android/app/build.gradle | awk '{ print $2 }')" >> "$GITHUB_OUTPUT"
run: echo "VERSION_CODE=$(grep -oP 'android:versionCode="\K[0-9]+' ../Android/AndroidManifest.xml)" >> "$GITHUB_OUTPUT"

- name: Build Android app
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
Expand All @@ -264,9 +264,6 @@ jobs:
env:
VERSION: ${{ steps.getAndroidVersion.outputs.VERSION_CODE }}

- name: Add debug
run: ls -laR .

- name: Get current Android rollout percentage
id: getAndroidRolloutPercentage
uses: ./.github/actions/javascript/getAndroidRolloutPercentage
Expand Down
7 changes: 1 addition & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,10 @@ platform :android do
lane :upload_google_play_production_hybrid_rollout do
# Google is very unreliable, so we retry a few times
ENV["SUPPLY_UPLOAD_MAX_RETRIES"]="5"
betaVersionCodes = google_play_track_version_codes(
package_name: "org.me.mobiexpensifyg",
json_key: './android-fastlane-json-key.json',
track: 'beta'
)
upload_to_play_store(
package_name: "org.me.mobiexpensifyg",
json_key: './android-fastlane-json-key.json',
version_code: betaVersionCodes.sort.last, # Get the latest version code
version_code: ENV["VERSION"].to_i,
track: 'beta',
track_promote_to: 'production',
rollout: '0.01',
Expand Down

0 comments on commit c168e84

Please sign in to comment.