1 Commits

Author SHA1 Message Date
f745a10547 remove gradle again
Some checks failed
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
/ push-to-remote (push) Successful in 1m4s
2024-09-25 16:52:32 +02:00
2 changed files with 9 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v*'
branches:
- main
jobs:
build:
@@ -23,13 +23,6 @@ jobs:
- name: Setup android SDK
uses: android-actions/setup-android@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.0
cache: true
- name: Infer version number from git tag
id: version
@@ -37,14 +30,13 @@ jobs:
REF_NAME: ${{ github.ref_name }}
run:
# remove the 'v' prefix from the tag name
echo "VERSION_NAME=${REF_NAME//v}" >> $GITHUB_ENV
echo "VERSION=${REF_NAME//v}" >> $GITHUB_OUTPUT
- name: Load secrets from github
run: |
echo "${{ secrets.ANDROID_SECRET_PROPERTIES }}" > secrets.properties
echo "${{ secrets.ANDROID_KEYSTORE }}" > release.keystore
echo "${{ secrets.ANDROID_GOOGLE_PLAY_JSON }}" > google-key.json
# decode the base64 encoded google key
base64 -d ${{ secrets.ANDROID_KEYSTORE_BASE64 }} > release.keystore
working-directory: android
- name: Install fastlane
@@ -54,4 +46,5 @@ jobs:
- name: Run fastlane lane
run: bundle exec fastlane deploy_testing
working-directory: android
# the environment variable VERSION_NAME is implicitly available
env:
VERSION_NAME: ${{ steps.version.VERSION }}

View File

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