From a1904151482477e00e8fa165decadb224cd37d11 Mon Sep 17 00:00:00 2001 From: ZCShou <72115@163.com> Date: Wed, 13 Aug 2025 09:37:54 +0800 Subject: [PATCH] ci: fix can not upload artifact --- .github/workflows/build-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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