Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgz0227 authored Jan 30, 2024
1 parent 1ea3951 commit 4e6e147
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
env:
product: ${{ matrix.product.value }}
product_name: ${{ matrix.product.value }}
outputs_dir: "${{ github.workspace }}/app/"
outputs_dir: "${{ github.workspace }}/app/build/outputs"


steps:
Expand Down Expand Up @@ -85,7 +85,10 @@ jobs:
echo "开始${{ env.product }}$typeName构建"
chmod +x gradlew
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
- name: Set Version Name
run: |
echo "ver_name=$(grep -m 1 'versionName' ${{ env.outputs_dir }}/apk/${{ env.product }}/release/output-metadata.json | cut -d\" -f4)" >> $GITHUB_ENV
- name: Upload APK To Artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -102,15 +105,12 @@ jobs:
# 蓝奏云里的文件夹ID
LANZOU_FOLDER_ID: '9494606'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: apk/
- working-directory: apk/
run: mv */*.apk . ;rm -rf */
- name: Upload To Lanzou
continue-on-error: true
run: |
mkdir apk
cp ${{ env.outputs_dir }}/apk/${{ env.product }}/release/*${{ env.ver_name }}.apk "${{ github.workspace }}/apk"
path="$GITHUB_WORKSPACE/apk/"
python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path" "$LANZOU_FOLDER_ID"
Expand Down

0 comments on commit 4e6e147

Please sign in to comment.