mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-22 09:10:44 +01:00
clean up
This commit is contained in:
parent
0e6fa12def
commit
bc5897ce57
@ -62,6 +62,7 @@ build_android_debug:
|
|||||||
- build/app/outputs/apk/debug/app-debug.apk
|
- build/app/outputs/apk/debug/app-debug.apk
|
||||||
except:
|
except:
|
||||||
- main
|
- main
|
||||||
|
- tags
|
||||||
|
|
||||||
build_android_apk:
|
build_android_apk:
|
||||||
stage: coverage
|
stage: coverage
|
||||||
@ -90,21 +91,9 @@ build_android_appbundle:
|
|||||||
upload_to_fdroid_repo:
|
upload_to_fdroid_repo:
|
||||||
stage: release
|
stage: release
|
||||||
before_script:
|
before_script:
|
||||||
##
|
|
||||||
## Install ssh-agent if not already installed.
|
|
||||||
##
|
|
||||||
- 'which ssh-agent || (sudo apt-get update -y && sudo apt-get install openssh-client -y )'
|
- 'which ssh-agent || (sudo apt-get update -y && sudo apt-get install openssh-client -y )'
|
||||||
##
|
|
||||||
## Install rsync if not already installed.
|
|
||||||
##
|
|
||||||
- 'which rsync || (sudo apt-get update -y && sudo apt-get install rsync -y )'
|
- 'which rsync || (sudo apt-get update -y && sudo apt-get install rsync -y )'
|
||||||
##
|
|
||||||
## Install pcregrep if not already installed.
|
|
||||||
##
|
|
||||||
- 'which pcregrep || (sudo apt-get update -y && sudo apt-get install pcregrep -y )'
|
- 'which pcregrep || (sudo apt-get update -y && sudo apt-get install pcregrep -y )'
|
||||||
##
|
|
||||||
## Run ssh-agent (inside the build environment)
|
|
||||||
##
|
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
@ -118,7 +107,7 @@ upload_to_fdroid_repo:
|
|||||||
needs: ["build_android_apk"]
|
needs: ["build_android_apk"]
|
||||||
resource_group: playstore_release
|
resource_group: playstore_release
|
||||||
only:
|
only:
|
||||||
- tags
|
- main
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -5,5 +5,10 @@ echo "storePassword=${FDROID_KEY_PASS}" >> key.properties
|
|||||||
echo "keyPassword=${FDROID_KEY_PASS}" >> key.properties
|
echo "keyPassword=${FDROID_KEY_PASS}" >> key.properties
|
||||||
echo "keyAlias=key" >> key.properties
|
echo "keyAlias=key" >> key.properties
|
||||||
echo "storeFile=../key.jks" >> key.properties
|
echo "storeFile=../key.jks" >> key.properties
|
||||||
cd app && echo $GOOGLE_SERVICES >> google-services.json/..
|
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
|
||||||
|
bundle install
|
||||||
|
bundle update fastlane
|
||||||
|
bundle exec fastlane set_build_code_beta
|
||||||
|
cd app
|
||||||
|
echo $GOOGLE_SERVICES >> google-services.json/..
|
||||||
cd ../..
|
cd ../..
|
@ -2,12 +2,6 @@
|
|||||||
flutter channel stable
|
flutter channel stable
|
||||||
flutter upgrade
|
flutter upgrade
|
||||||
flutter pub get
|
flutter pub get
|
||||||
cd android
|
|
||||||
bundle install
|
|
||||||
bundle update fastlane
|
|
||||||
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
|
|
||||||
bundle exec fastlane set_build_code_beta
|
|
||||||
cd ..
|
|
||||||
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
|
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
|
||||||
mkdir -p build/android
|
mkdir -p build/android
|
||||||
cp build/app/outputs/bundle/release/app-release.aab build/android/
|
cp build/app/outputs/bundle/release/app-release.aab build/android/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user