diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04fd048..44dbbfa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,31 @@ -image: appleboy/git:latest - stages: + - prepare - build before_script: - git clone https://github.com/flutter/flutter.git -b stable - - export PATH="$PATH:`pwd`/flutter/bin" - - flutter doctor + +prepare_macos: + stage: prepare + tags: + - macos + script: + - export PATH="$PATH:`pwd`/flutter/bin" + - flutter doctor + +#prepare_windows: +# stage: prepare +# tags: +# - windows +# script: +# - flutter doctor +# +#prepare_linux: +# stage: prepare +# tags: +# - linux +# script: +# - flutter doctor build_android: stage: build @@ -21,10 +40,18 @@ build_android: paths: - build/app/outputs/bundle/release/app-release.aab -#build_ios: -# stage: build -# tags: -# - macos -# script: -# - flutter clean -# - flutter build ios --release --no-codesign \ No newline at end of file +build_ios: + stage: build + tags: + - macos + script: + - flutter clean + - flutter build ios --release --no-codesign + - cd build/ios/iphoneos + - mkdir Payload + - mv Runner.app Payload/Runner.app + - zip -r build.ipa Payload + artifacts: + name: iOS Release + paths: + - build/ios/iphoneos/build.ipa \ No newline at end of file