mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
Update legado.yml
This commit is contained in:
parent
807614e79f
commit
3cd000eebc
14
.github/workflows/legado.yml
vendored
14
.github/workflows/legado.yml
vendored
@ -55,26 +55,30 @@ jobs:
|
||||
echo "开始进行release构建"
|
||||
chmod +x gradlew
|
||||
./gradlew assembleAppRelease --build-cache --parallel
|
||||
echo "开始进行cronet构建"
|
||||
./gradlew assembleCronetRelease --build-cache --parallel
|
||||
- name: Organize the files
|
||||
run: |
|
||||
mkdir -p ${{ github.workspace }}/apk/
|
||||
cp -rf ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk ${{ github.workspace }}/apk/
|
||||
- name: Upload App To Artifact
|
||||
if: ${{ env.UPLOAD_ARTIFACT != 'false' }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: legado apk
|
||||
path: ${{ github.workspace }}/app/build/outputs/apk/app/release/*.apk
|
||||
path: ${{ github.workspace }}/apk/*.apk
|
||||
- name: Upload App To Lanzou
|
||||
if: ${{ env.ylogin }}
|
||||
run: |
|
||||
path="$GITHUB_WORKSPACE/app/build/outputs/apk/app/release"
|
||||
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"
|
||||
break
|
||||
python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID"
|
||||
fi
|
||||
done
|
||||
|
||||
python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID"
|
||||
echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user