Horis 2 lat temu
rodzic
commit
4a7b10d9b0
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      .github/workflows/test.yml

+ 10 - 0
.github/workflows/test.yml

@@ -93,15 +93,25 @@ jobs:
           ./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
           ./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
           echo "修改文件名"
           echo "修改文件名"
           mkdir -p ${{ github.workspace }}/apk/
           mkdir -p ${{ github.workspace }}/apk/
+          mkdir -p ${{ github.workspace }}/mapping/
           for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
           for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
             mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
             mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
           done
           done
+          for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
+            mv "$file" ${{ github.workspace }}/mapping/mapping.txt
+          done
       - name: Upload App To Artifact
       - name: Upload App To Artifact
         uses: actions/upload-artifact@v4
         uses: actions/upload-artifact@v4
         with:
         with:
           name: legado.${{ env.product }}.${{ env.type }}
           name: legado.${{ env.product }}.${{ env.type }}
           path: ${{ github.workspace }}/apk/*.apk
           path: ${{ github.workspace }}/apk/*.apk
 
 
+      - name: Upload Mapping File To Artifact
+        uses: actions/upload-artifact@v4
+        with:
+          name: legado.${{ env.product }}.${{ env.type }}.mapping
+          path: ${{ github.workspace }}/mapping/mapping.txt
+
   lanzou:
   lanzou:
     needs: [ prepare, build ]
     needs: [ prepare, build ]
     if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.lanzou == 'yes' }}
     if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.lanzou == 'yes' }}