|
@@ -103,7 +103,7 @@ jobs:
|
|
|
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
|
|
|
- mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
|
|
|
|
|
|
|
+ cp "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
|
|
|
done
|
|
done
|
|
|
echo "移动mapping文件"
|
|
echo "移动mapping文件"
|
|
|
mkdir -p ${{ github.workspace }}/mapping/
|
|
mkdir -p ${{ github.workspace }}/mapping/
|
|
@@ -149,13 +149,14 @@ jobs:
|
|
|
path: ${{ github.workspace }}/mapping/mapping.txt
|
|
path: ${{ github.workspace }}/mapping/mapping.txt
|
|
|
|
|
|
|
|
- name: Publish Pre-Release
|
|
- name: Publish Pre-Release
|
|
|
|
|
+ if: env.type == 'release'
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
with:
|
|
with:
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
automatic_release_tag: "beta"
|
|
automatic_release_tag: "beta"
|
|
|
prerelease: true
|
|
prerelease: true
|
|
|
title: "Latest Beta Build"
|
|
title: "Latest Beta Build"
|
|
|
- files: ${{ github.workspace }}/apk/*.apk
|
|
|
|
|
|
|
+ files: ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk
|
|
|
|
|
|
|
|
lanzou:
|
|
lanzou:
|
|
|
needs: [ prepare, build ]
|
|
needs: [ prepare, build ]
|