Skip to content
代码片段 群组 项目
提交 18779834 编辑于 作者: ling zhang's avatar ling zhang
浏览文件

build: #92 Remove job extend

上级 96ddd83e
No related branches found
No related tags found
无相关合并请求
......@@ -29,18 +29,17 @@ check:
expire_in: 5 days
build-android:
extends: check
stage: build
script:
- flutter build apk --dart-define=REQUEST_ENV=prod_env
- export VERSION_APK=$(/opt/android-sdk-linux/build-tools/30.0.3/aapt2 dump badging build/app/outputs/flutter-apk/app-release.apk | grep "versionName" | sed -e "s/.*versionName='//" -e "s/' .*//")
artifacts:
name: "flutter-apk"
paths:
- build/app/outputs/flutter-apk/app-release.apk
expire_in: 2 days
build-ios:
extends: check
stage: build
script:
# - flutter build ipa
......@@ -50,5 +49,5 @@ upload-apk:
stage: deploy
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/app/outputs/flutter-apk/app-release.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/jihu-gitlab-app/${VERSION_APK}/app-release.apk"'
only:
- main
# only:
# - main
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册