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