|
|
|
@ -23,30 +23,30 @@ jobs: |
|
|
|
|
path: keystore # 仓库的根目录名 |
|
|
|
|
# 读取配置 |
|
|
|
|
- name: Prepare Config |
|
|
|
|
id: config |
|
|
|
|
run: | |
|
|
|
|
echo "读取配置" |
|
|
|
|
source ${{ github.workspace }}/app/version_code.properties |
|
|
|
|
version=$VERSION_CODE |
|
|
|
|
hun=$(expr ${version} / 100) |
|
|
|
|
ten=$(expr ${version} / 10) |
|
|
|
|
ten=$(expr ${ten} % 10) |
|
|
|
|
one=$(expr ${version} % 10) |
|
|
|
|
versionN=v$hun.$ten.$one |
|
|
|
|
id: config |
|
|
|
|
run: | |
|
|
|
|
echo "读取配置" |
|
|
|
|
source ${{ github.workspace }}/app/version_code.properties |
|
|
|
|
version=$VERSION_CODE |
|
|
|
|
hun=$(expr ${version} / 100) |
|
|
|
|
ten=$(expr ${version} / 10) |
|
|
|
|
ten=$(expr ${ten} % 10) |
|
|
|
|
one=$(expr ${version} % 10) |
|
|
|
|
versionN=v$hun.$ten.$one |
|
|
|
|
|
|
|
|
|
echo ::set-output name=need_create_release::"$NEED_CREATE_RELEASE" |
|
|
|
|
echo ::set-output name=version_name::"$versionN" |
|
|
|
|
echo ::set-output name=need_create_release::"$NEED_CREATE_RELEASE" |
|
|
|
|
echo ::set-output name=version_name::"$versionN" |
|
|
|
|
|
|
|
|
|
echo need_create_release=$NEED_CREATE_RELEASE |
|
|
|
|
echo version_name=$versionN |
|
|
|
|
echo need_create_release=$NEED_CREATE_RELEASE |
|
|
|
|
echo version_name=$versionN |
|
|
|
|
|
|
|
|
|
if [[ $NEED_CREATE_RELEASE == 'true' ]];then |
|
|
|
|
echo ::set-output name=lanzou_folder_id::"1608604" |
|
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e" |
|
|
|
|
else |
|
|
|
|
echo ::set-output name=lanzou_folder_id::"2226473" |
|
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00nu1f8d" |
|
|
|
|
fi |
|
|
|
|
if [[ $NEED_CREATE_RELEASE == 'true' ]];then |
|
|
|
|
echo ::set-output name=lanzou_folder_id::"1608604" |
|
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e" |
|
|
|
|
else |
|
|
|
|
echo ::set-output name=lanzou_folder_id::"2226473" |
|
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00nu1f8d" |
|
|
|
|
fi |
|
|
|
|
# 编译打包 |
|
|
|
|
- name: Build With Gradle |
|
|
|
|
run: | |
|
|
|
|