This commit is contained in:
Horis 2024-02-07 18:25:14 +08:00
parent 7d413ba883
commit 7f94c80784

View File

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