From c38bdfd4fe325b784381c72ab718f6930bd53b8e Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Wed, 23 Nov 2022 18:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c40894..c2d9234 100644 --- a/.github/workflows/build.yml +++ b/.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至蓝奏云"