1 Commits

Author SHA1 Message Date
0493eba332 remove gradle again
Some checks failed
/ push-to-remote (push) Successful in 12s
Build and deploy the backend to production / Deploy to production (push) Has been cancelled
Build and deploy the backend to production / Build and push image (push) Has been cancelled
2024-09-25 17:09:21 +02:00
3 changed files with 12 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ jobs:
REF_NAME: ${{ github.ref_name }} REF_NAME: ${{ github.ref_name }}
run: run:
# remove the 'v' prefix from the tag name # remove the 'v' prefix from the tag name
echo "VERSION=${REF_NAME//v}" >> $GITHUB_OUTPUT echo "VERSION_NAME=${REF_NAME//v}" >> $GITHUB_ENV
- name: Load secrets from github - name: Load secrets from github
run: | run: |
@@ -46,5 +46,4 @@ jobs:
- name: Run fastlane lane - name: Run fastlane lane
run: bundle exec fastlane deploy_testing run: bundle exec fastlane deploy_testing
working-directory: android working-directory: android
env: # the environment variable VERSION_NAME is implicitly available
VERSION_NAME: ${{ steps.version.VERSION }}

View File

@@ -1,3 +1,6 @@
gradlew
gradlew.bat
gradle/
/.gradle /.gradle
/captures/ /captures/
/local.properties /local.properties

View File

@@ -7,10 +7,14 @@ platform :android do
desc "Deploy a new version as a preview version" desc "Deploy a new version as a preview version"
lane :deploy_testing do lane :deploy_testing do
version_name = ENV["VERSION_NAME"]
sh( sh(
"flutter build appbundle --release", "flutter",
"--build-name=", "build",
ENV["VERSION_NAME"], "appbundle",
"--release",
"--build-name=#{version_name}",
) )
upload_to_play_store( upload_to_play_store(