Skip to content

Instantly share code, notes, and snippets.

@bbedward
Last active November 14, 2019 16:10
Show Gist options
  • Save bbedward/14a65f0080d59fb4f5ebc7a2708f32c8 to your computer and use it in GitHub Desktop.
Save bbedward/14a65f0080d59fb4f5ebc7a2708f32c8 to your computer and use it in GitHub Desktop.
android:build:
stage: build
tags:
- appditto_mac
script:
# Flutter local configuration
- echo flutter.sdk=$FLUTTER_PATH > android/local.properties
- echo sdk.dir=$ANDROID_SDK_PATH >> android/local.properties
- echo flutter.buildMode=release >> android/local.properties
# Android signing
- echo storePassword=$ANDROID_KEY_STORE_PASSWORD > android/key.properties
- echo keyPassword=$ANDROID_KEY_PASSWORD >> android/key.properties
- echo keyAlias=$ANDROID_KEY_ALIAS >> android/key.properties
- echo storeFile=$ANDROID_KEYSTORE_PATH >> android/key.properties
- cd android
- bundle exec fastlane build_android production:true
- rm -f android/local.properties
- rm -f android/key.properties
artifacts:
paths:
- build/app/outputs/apk/release/app-release.apk
- build/app/outputs/bundle/release/app.aab
expire_in: 1 week
interruptible: true
ios:build:
stage: build
tags:
- appditto_mac
script:
- cd ios
- export TEMP_KEYCHAIN_NAME=fastlane_$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w ${1:-16} | head -n 1)
- export TEMP_KEYCHAIN_PASSWORD=$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w ${1:-64} | head -n 1)
- bundle exec fastlane build_ios
artifacts:
paths:
- ios/Runner.ipa
expire_in: 1 week
interruptible: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment