|
|
@ -10,10 +10,10 @@ jobs: |
|
|
|
build: |
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
# 获取打包秘钥 |
|
|
|
# 获取打包秘钥 |
|
|
|
- name: Checkout Android Keystore |
|
|
|
- name: Checkout Android Keystore |
|
|
|
uses: actions/checkout@v2 |
|
|
|
uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
repository: fengyuecanzhu/Key |
|
|
|
repository: fengyuecanzhu/Key |
|
|
|
token: ${{ secrets.KEY_TOKEN }} # 连接仓库的token,需要单独配置 |
|
|
|
token: ${{ secrets.KEY_TOKEN }} # 连接仓库的token,需要单独配置 |
|
|
@ -27,18 +27,18 @@ jobs: |
|
|
|
version=$VERSION_CODE |
|
|
|
version=$VERSION_CODE |
|
|
|
versionN=v${version:0:1}.${version:1:1}.${version:2:1} |
|
|
|
versionN=v${version:0:1}.${version:1:1}.${version:2:1} |
|
|
|
|
|
|
|
|
|
|
|
echo ::set-output name=need_create_release::"$CREATE_RELEASE" |
|
|
|
echo need_create_release="$CREATE_RELEASE" >> $GITHUB_OUTPUT |
|
|
|
echo ::set-output name=version_name::"$versionN" |
|
|
|
echo version_name="$versionN" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
|
|
|
|
echo need_create_release=$CREATE_RELEASE |
|
|
|
echo need_create_release=$CREATE_RELEASE |
|
|
|
echo version_name=$versionN |
|
|
|
echo version_name=$versionN |
|
|
|
|
|
|
|
|
|
|
|
if [ $CREATE_RELEASE == 'true' -a ${{ github.ref }} == 'refs/heads/master' ];then |
|
|
|
if [ $CREATE_RELEASE == 'true' -a ${{ github.ref }} == 'refs/heads/master' ];then |
|
|
|
echo ::set-output name=lanzou_folder_id::"1608604" |
|
|
|
echo lanzou_folder_id="1608604" >> $GITHUB_OUTPUT |
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e" |
|
|
|
echo lanzou_share_url="https://fycz.lanzoui.com/b00ngso7e" >> $GITHUB_OUTPUT |
|
|
|
else |
|
|
|
else |
|
|
|
echo ::set-output name=lanzou_folder_id::"2226473" |
|
|
|
echo lanzou_folder_id="2226473" >> $GITHUB_OUTPUT |
|
|
|
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00nu1f8d" |
|
|
|
echo lanzou_share_url="https://fycz.lanzoui.com/b00nu1f8d" >> $GITHUB_OUTPUT |
|
|
|
fi |
|
|
|
fi |
|
|
|
# 编译打包 |
|
|
|
# 编译打包 |
|
|
|
- name: Build With Gradle |
|
|
|
- name: Build With Gradle |
|
|
@ -59,7 +59,7 @@ jobs: |
|
|
|
if [[ ${{ steps.config.outputs.need_create_release }} != 'true' ]];then |
|
|
|
if [[ ${{ steps.config.outputs.need_create_release }} != 'true' ]];then |
|
|
|
path="$GITHUB_WORKSPACE/app/build/outputs/apk/debug" |
|
|
|
path="$GITHUB_WORKSPACE/app/build/outputs/apk/debug" |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo ::set-output name=file_path::"$path" |
|
|
|
echo file_path="$path" >> $GITHUB_OUTPUT |
|
|
|
- name: Upload Lanzou |
|
|
|
- name: Upload Lanzou |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
echo "上传APP至蓝奏云" |
|
|
|
echo "上传APP至蓝奏云" |
|
|
|