Skip to content

Commit

Permalink
Playstore internal track and use flutter name in ios testflight
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrashid52 committed Jul 22, 2024
1 parent ee1aa52 commit 07547ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ios-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Update version number from tag
run: |
# Extract the version components from refs tag (e.g., 1.2.3)
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "FLUTTER_BUILD_NAME=$TAG_NAME" >> $GITHUB_ENV
TAG_NAME=${{ github.ref_name }}
VERSION=${TAG_NAME#v} # Remove the 'v' prefix if it exists
echo "FLUTTER_BUILD_NAME=$VERSION" >> $GITHUB_ENV
MAJOR=$(echo $VERSION | cut -d. -f1)
MINOR=$(echo $VERSION | cut -d. -f2)
PATCH=$(echo $VERSION | cut -d. -f3)
Expand Down
1 change: 1 addition & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ platform :android do
updated_version_name = ENV["FLUTTER_BUILD_NAME"]
sh "flutter build apk --release --build-name=#{updated_version_name}"
upload_to_play_store(
track: "internal",
apk: "../build/app/outputs/flutter-apk/app-release.apk",
)
end
Expand Down
1 change: 1 addition & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ platform :ios do
match(app_identifier: "burhanrashid52.whattodo", type: "appstore",readonly:true)
updated_version_number = bump_build_number()
increment_build_number(build_number: updated_version_number)
increment_version_number(version_number: ENV["FLUTTER_BUILD_NAME"])
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
pilot(api_key_path: "fastlane/store.json", skip_waiting_for_build_processing: true)
end
Expand Down

0 comments on commit 07547ba

Please sign in to comment.