Merge pull request #1226 from o0HalfLife0o/master

避免频繁登陆蓝奏云导致上传失败
pull/1251/head 3.21.081020
kunfei 3 years ago committed by GitHub
commit 18c8ba58b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .github/workflows/release.yml
  2. 13
      .github/workflows/test.yml

@ -17,7 +17,7 @@ jobs:
ylogin: ${{ secrets.LANZOU_ID }} ylogin: ${{ secrets.LANZOU_ID }}
phpdisk_info: ${{ secrets.LANZOU_PSD }} phpdisk_info: ${{ secrets.LANZOU_PSD }}
# 蓝奏云里的文件夹ID(阅读3测试版:2670621) # 蓝奏云里的文件夹ID(阅读3测试版:2670621)
LANZOU_FOLDER_ID: 'b0f8pv92b' LANZOU_FOLDER_ID: 'b0f7pt4ja'
# 是否上传到artifact # 是否上传到artifact
UPLOAD_ARTIFACT: 'true' UPLOAD_ARTIFACT: 'true'
steps: steps:
@ -64,17 +64,9 @@ jobs:
- name: Upload App To Lanzou - name: Upload App To Lanzou
if: ${{ env.ylogin }} if: ${{ env.ylogin }}
run: | run: |
path="$GITHUB_WORKSPACE/apk" path="$GITHUB_WORKSPACE/apk/"
files=$(ls $path) python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID"
for f in $files echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f7pt4ja"
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
echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b"
- name: Release - name: Release
uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22 uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22
with: with:

@ -88,15 +88,6 @@ jobs:
- name: Upload App To Lanzou - name: Upload App To Lanzou
if: ${{ env.ylogin }} if: ${{ env.ylogin }}
run: | run: |
path="$GITHUB_WORKSPACE/apk" path="$GITHUB_WORKSPACE/apk/"
files=$(ls $path) python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID"
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
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/b0f810h4b"

Loading…
Cancel
Save