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

ci: #92 Use the default file name

上级 d302649a
No related branches found
No related tags found
无相关合并请求
......@@ -38,9 +38,6 @@ build-android:
- VERSION_APK=$(/opt/android-sdk-linux/build-tools/30.0.3/aapt2 dump badging ${ANDROID_APK_PATH} | grep "versionName" | sed -e "s/.*versionName='//" -e "s/' .*//")
- FILENAME_APK=$(ls | grep 'apk')
- echo "VERSION_APK=$VERSION_APK" > version.env
- echo "FILENAME_APK=$FILENAME_APK" >> version.env
- echo $VERSION_APK
- echo $FILENAME_APK
artifacts:
name: "android-apk"
paths:
......@@ -58,6 +55,6 @@ build-ios:
upload-apk:
stage: deploy
script:
- 'curl -i --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${ANDROID_APK_PATH} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/jihu-gitlab-app/${VERSION_APK}/${FILENAME_APK}"'
- 'curl -i --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${ANDROID_APK_PATH} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/jihu-gitlab-app/${VERSION_APK}/"'
only:
- main
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册