更新action

master^2
fengyuecanzhu 2 years ago
parent 3da6aa8dd3
commit c38bdfd4fe
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 18
      .github/workflows/build.yml

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

Loading…
Cancel
Save