mirror of
https://gitlab.com/Zer0interrupt/recipe-manager.git
synced 2026-11-02 07:28:25 -05:00
25 lines
636 B
YAML
25 lines
636 B
YAML
image: ghcr.io/cirruslabs/flutter:latest
|
|
|
|
stages:
|
|
- build
|
|
|
|
variables:
|
|
SECURE_FILES_DOWNLOAD_PATH: './'
|
|
|
|
build_android_apk:
|
|
stage: build
|
|
before_script:
|
|
- flutter doctor -v
|
|
- mkdir -p /root/.gradle
|
|
- echo "kotlin.jvm.target.validation.mode=warning" >> /root/.gradle/gradle.properties
|
|
script:
|
|
- cd mobile
|
|
- flutter pub get
|
|
- flutter build apk --release --android-skip-build-dependency-validation
|
|
artifacts:
|
|
name: "ForkFolio-Mobile-APK-$CI_COMMIT_SHORT_SHA"
|
|
paths:
|
|
- mobile/build/app/outputs/flutter-apk/app-release.apk
|
|
expire_in: 30 days
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == "main"
|