[skip ci] Update test.yml

typeName variable is null
This commit is contained in:
Xwite 2024-02-20 06:12:31 +08:00
parent 8ba16e2560
commit cf9d9e3500

View File

@ -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' }}