Compare commits
5 Commits
v0.0.30
...
94a7adac6c
Author | SHA1 | Date | |
---|---|---|---|
94a7adac6c | |||
4d99715447 | |||
48555e7429 | |||
8b24876fd1 | |||
c832461f29 |
@@ -37,7 +37,7 @@ jobs:
|
||||
REF_NAME: ${{ github.ref_name }}
|
||||
run:
|
||||
# remove the 'v' prefix from the tag name
|
||||
echo "VERSION_NAME=${REF_NAME//v}" >> $GITHUB_ENV
|
||||
echo "BUILD_NAME=${REF_NAME//v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Load secrets from github
|
||||
run: |
|
||||
@@ -53,4 +53,6 @@ jobs:
|
||||
- name: Run fastlane lane
|
||||
run: bundle exec fastlane deploy_testing
|
||||
working-directory: android
|
||||
# the environment variable VERSION_NAME is implicitly available
|
||||
env:
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
# BUILD_NAME is implicitly available
|
||||
|
@@ -5,26 +5,28 @@ default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
|
||||
desc "Deploy a new version as a preview version"
|
||||
desc "Deploy a new version to closed testing"
|
||||
lane :deploy_testing do
|
||||
version_name = ENV["VERSION_NAME"]
|
||||
build_name = ENV["BUILD_NAME"]
|
||||
build_number = ENV["BUILD_NUMBER"]
|
||||
|
||||
sh(
|
||||
"flutter",
|
||||
"build",
|
||||
"appbundle",
|
||||
"--release",
|
||||
"--build-name=#{version_name}",
|
||||
"--build-name=#{build_name}",
|
||||
"--build-number=#{build_number}",
|
||||
)
|
||||
|
||||
upload_to_play_store(
|
||||
track: 'alpha',
|
||||
skip_upload_apk: true,
|
||||
skip_upload_changelogs: true,
|
||||
aab: "../../build/app/outputs/bundle/release/app-release.aab",
|
||||
aab: "../build/app/outputs/bundle/release/app-release.aab",
|
||||
# this is the default output of flutter build ... --release
|
||||
# in particular this the build folder lies in the flutter root folder
|
||||
# hence the relative path
|
||||
# this is the parent folder for the android folder
|
||||
)
|
||||
end
|
||||
|
||||
@@ -32,6 +34,7 @@ platform :android do
|
||||
lane :deploy_release do
|
||||
gradle(
|
||||
task: "clean assembleRelease",
|
||||
# todo update to a flutter call
|
||||
properties: {
|
||||
# loaded from environment
|
||||
"android.injected.version.name" => ENV["VERSION_NAME"],
|
||||
@@ -41,10 +44,10 @@ platform :android do
|
||||
track: "production",
|
||||
skip_upload_apk: true,
|
||||
skip_upload_changelogs: true,
|
||||
aab: "../../build/app/outputs/bundle/release/app-release.aab",
|
||||
aab: "../build/app/outputs/bundle/release/app-release.aab",
|
||||
# this is the default output of flutter build ... --release
|
||||
# in particular this the build folder lies in the flutter root folder
|
||||
# hence the relative path
|
||||
# this is the parent folder for the android folder
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user