Skip to content

Commit a4a1f92

Browse files
committed
Update release.yml
1 parent c688620 commit a4a1f92

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
- name: Set release name
5555
run: echo RELEASE_NAME=${GITHUB_REF} >> $GITHUB_ENV
5656

57+
- name: Get version
58+
id: get_version
59+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
60+
5761
- name: Create Release
5862
id: create_release
5963
uses: actions/create-release@v1
@@ -84,7 +88,7 @@ jobs:
8488
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8589
with:
8690
upload_url: ${{ steps.create_release.outputs.upload_url }}
87-
asset_path: ./app/build/outputs/apk/release/TrustDevice-release-${{ env.RELEASE_NAME }}.apk
88-
asset_name: TrustDevice-release-${{ env.RELEASE_NAME }}.apk
91+
asset_path: ./app/build/outputs/apk/release/TrustDevice-release-${{ steps.get_version.outputs.VERSION }}.apk
92+
asset_name: TrustDevice-release-${{ steps.get_version.outputs.VERSION }}.apk
8993
# Common MIME types:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
9094
asset_content_type: application/zip

0 commit comments

Comments
 (0)