mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
[skip ci] Update test.yml
typeName variable is null
This commit is contained in:
parent
8ba16e2560
commit
cf9d9e3500
33
.github/workflows/test.yml
vendored
33
.github/workflows/test.yml
vendored
@ -92,8 +92,6 @@ jobs:
|
|||||||
echo "开始${{ env.product }}$typeName构建"
|
echo "开始${{ env.product }}$typeName构建"
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
|
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
|
||||||
- name: Rename outputs apks And Move files
|
|
||||||
run: |
|
|
||||||
echo "修改APK文件名"
|
echo "修改APK文件名"
|
||||||
mkdir -p ${{ github.workspace }}/apk/
|
mkdir -p ${{ github.workspace }}/apk/
|
||||||
for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
|
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
|
for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
|
||||||
mv "$file" ${{ github.workspace }}/mapping/mapping.txt
|
mv "$file" ${{ github.workspace }}/mapping/mapping.txt
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Move Missing Rules Files
|
||||||
|
run: |
|
||||||
echo "移动missing_rules.txt文件"
|
echo "移动missing_rules.txt文件"
|
||||||
|
mkdir -p ${{ github.workspace }}/mapping/
|
||||||
for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/missing_rules.txt`; do
|
for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/missing_rules.txt`; do
|
||||||
mv "$file" ${{ github.workspace }}/mapping/missing_rules.txt
|
mv "$file" ${{ github.workspace }}/mapping/missing_rules.txt
|
||||||
done
|
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
|
- name: Upload Missing Rules File To Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@ -137,6 +126,20 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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:
|
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' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user