Skip to content

Commit

Permalink
调整Github Asset下的apk名称
Browse files Browse the repository at this point in the history
Change-Id: I6fc99594689d417ed26295dcc28f004f36b5fcfd
  • Loading branch information
archurcode committed Sep 3, 2020
1 parent 12a96aa commit 7276bf3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/tencent_official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7276bf3

Please sign in to comment.