From 7276bf34e12d2229bc54d36178d8fa2ee92fc829 Mon Sep 17 00:00:00 2001 From: archurtan Date: Thu, 3 Sep 2020 17:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Github=20Asset=E4=B8=8B?= =?UTF-8?q?=E7=9A=84apk=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6fc99594689d417ed26295dcc28f004f36b5fcfd --- .github/workflows/tencent_official.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tencent_official.yml b/.github/workflows/tencent_official.yml index 40beb521b..742f7e80f 100644 --- a/.github/workflows/tencent_official.yml +++ b/.github/workflows/tencent_official.yml @@ -65,19 +65,16 @@ jobs: uses: actions/upload-artifact@v2 with: path: app/build/outputs/apk/tencentOfficial/release/*.apk.gpg - - name: Get Name of Release APK - id: get-path-and-name + - name: Rename Release APK run: | APK_PATH=$(ls app/build/outputs/apk/tencentOfficial/release/*.apk.gpg) - APK_NAME=$(basename $APK_PATH) - echo ::set-output name=APK_PATH::${APK_PATH} - echo ::set-output name=APK_NAME::${APK_NAME} + cp $APK_PATH iot-link-android.apk.gpg - name: Upload Release apk to Asset uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{ steps.get-path-and-name.outputs.APK_PATH }} - asset_name: ${{ steps.get-path-and-name.outputs.APK_NAME }} + asset_path: iot-link-android.apk.gpg + asset_name: iot-link-android.apk.gpg asset_content_type: application/zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}