From cf9d9e350089ac2f6411e2d7421a3063e91ce1cb Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Tue, 20 Feb 2024 06:12:31 +0800 Subject: [PATCH] [skip ci] Update test.yml typeName variable is null --- .github/workflows/test.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7aae086b..6a73cb68e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,8 +92,6 @@ jobs: echo "开始${{ env.product }}$typeName构建" chmod +x gradlew ./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all - - name: Rename outputs apks And Move files - run: | echo "修改APK文件名" mkdir -p ${{ github.workspace }}/apk/ for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do @@ -104,23 +102,14 @@ jobs: for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do mv "$file" ${{ github.workspace }}/mapping/mapping.txt done + + - name: Move Missing Rules Files + run: | echo "移动missing_rules.txt文件" + mkdir -p ${{ github.workspace }}/mapping/ for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/missing_rules.txt`; do mv "$file" ${{ github.workspace }}/mapping/missing_rules.txt done - - name: Upload App To Artifact - uses: actions/upload-artifact@v4 - with: - name: legado.${{ env.product }}.${{ env.type }} - if-no-files-found: ignore - path: ${{ github.workspace }}/apk/*.apk - - - name: Upload Mapping File To Artifact - uses: actions/upload-artifact@v4 - with: - name: legado.${{ env.product }}.${{ env.type }}.mapping - if-no-files-found: ignore - path: ${{ github.workspace }}/mapping/mapping.txt - name: Upload Missing Rules File To Artifact uses: actions/upload-artifact@v4 @@ -137,6 +126,20 @@ jobs: exit 1 fi + - name: Upload App To Artifact + uses: actions/upload-artifact@v4 + with: + name: legado.${{ env.product }}.${{ env.type }} + if-no-files-found: ignore + path: ${{ github.workspace }}/apk/*.apk + + - name: Upload Mapping File To Artifact + uses: actions/upload-artifact@v4 + with: + name: legado.${{ env.product }}.${{ env.type }}.mapping + if-no-files-found: ignore + path: ${{ github.workspace }}/mapping/mapping.txt + lanzou: needs: [ prepare, build ] if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.lanzou == 'yes' }}