diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index bad396a..240e7d6 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -60,10 +60,16 @@ jobs: env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} + - name: Get Signed APK Name + run: | + FULL_PATH=${{steps.sign_apk.outputs.signedReleaseFile}} + FILENAME=$(basename "$FULL_PATH") + echo "FILENAME=${FILENAME}" >> $GITHUB_ENV # 存储到环境变量 + - name: Upload APK uses: actions/upload-artifact@v4 with: - name: ${{steps.sign_apk.outputs.signedReleaseFile}} + name: ${{ env.FILENAME }} path: ${{steps.sign_apk.outputs.signedReleaseFile}} # https://github.com/marketplace/actions/auto-changelog