File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 54
54
- name : Set release name
55
55
run : echo RELEASE_NAME=${GITHUB_REF} >> $GITHUB_ENV
56
56
57
+ - name : Get version
58
+ id : get_version
59
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
60
+
57
61
- name : Create Release
58
62
id : create_release
59
63
uses : actions/create-release@v1
84
88
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
89
with :
86
90
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
89
93
# Common MIME types:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
90
94
asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments