From 0c5d14917de20884af31688f17f1efc7ea6a9232 Mon Sep 17 00:00:00 2001 From: HalfLife Date: Tue, 10 Aug 2021 19:18:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=A2=91=E7=B9=81?= =?UTF-8?q?=E7=99=BB=E9=99=86=E8=93=9D=E5=A5=8F=E4=BA=91=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 12 ++---------- .github/workflows/test.yml | 13 ++----------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53f840a4f..ea2178c32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,16 +64,8 @@ jobs: - name: Upload App To Lanzou if: ${{ env.ylogin }} run: | - path="$GITHUB_WORKSPACE/apk" - files=$(ls $path) - for f in $files - do - if [[ $f == *"apk" ]]; then - file=$f - echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 文件:$file" - python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID" - fi - done + path="$GITHUB_WORKSPACE/apk/" + python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID" echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b" - name: Release uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 646a90293..1f704f329 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,15 +88,6 @@ jobs: - name: Upload App To Lanzou if: ${{ env.ylogin }} run: | - path="$GITHUB_WORKSPACE/apk" - files=$(ls $path) - for f in $files - do - if [[ $f == *"apk" ]]; then - file=$f - echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 文件:$file" - python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID" - fi - done + path="$GITHUB_WORKSPACE/apk/" + python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID" echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b" - From 69860f66c8199a35b739174ed7e867857b5249e8 Mon Sep 17 00:00:00 2001 From: HalfLife <6436073+o0HalfLife0o@users.noreply.github.com> Date: Tue, 10 Aug 2021 19:38:43 +0800 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea2178c32..6a2e9588a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: ylogin: ${{ secrets.LANZOU_ID }} phpdisk_info: ${{ secrets.LANZOU_PSD }} # 蓝奏云里的文件夹ID(阅读3测试版:2670621) - LANZOU_FOLDER_ID: 'b0f8pv92b' + LANZOU_FOLDER_ID: 'b0f7pt4ja' # 是否上传到artifact UPLOAD_ARTIFACT: 'true' steps: @@ -66,7 +66,7 @@ jobs: run: | path="$GITHUB_WORKSPACE/apk/" python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID" - echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b" + echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f7pt4ja" - name: Release uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22 with: