9393 runs-on : ubuntu-latest
9494 needs : package
9595 steps :
96- - name : Set Version
97- run : echo ::set-env name=VERSION::$(git rev-parse --short HEAD)
9896 - name : Create Release
9997 id : create_release
10098 uses : actions/create-release@v1
@@ -103,6 +101,7 @@ jobs:
103101 with :
104102 tag_name : ${{ github.ref }}
105103 release_name : ${{ github.ref }}
104+ body : ${{ github.tag }}
106105 draft : true
107106 prerelease : true
108107 - name : Download macOS package
@@ -117,7 +116,7 @@ jobs:
117116 with :
118117 upload_url : ${{ steps.create_release.outputs.upload_url }}
119118 asset_path : ./optimus-macOS/optimus.dmg
120- asset_name : optimus_${{ env.VERSION }}_macOS.dmg
119+ asset_name : optimus_${{ github.ref }}_macOS.dmg
121120 asset_content_type : application/octet-stream
122121 - name : Download linux package
123122 uses : actions/download-artifact@v1
@@ -131,7 +130,7 @@ jobs:
131130 with :
132131 upload_url : ${{ steps.create_release.outputs.upload_url }}
133132 asset_path : ./optimus-linux/optimus
134- asset_name : optimus_${{ env.VERSION }}_linux_x86_64
133+ asset_name : optimus_${{ github.ref }}_linux_x86_64
135134 asset_content_type : application/octet-stream
136135 - name : Download windows package
137136 uses : actions/download-artifact@v1
@@ -145,5 +144,5 @@ jobs:
145144 with :
146145 upload_url : ${{ steps.create_release.outputs.upload_url }}
147146 asset_path : ./optimus-windows/optimus.exe
148- asset_name : optimus_${{ env.VERSION }}_windows_x86_64.exe
147+ asset_name : optimus_${{ github.ref }}_windows_x86_64.exe
149148 asset_content_type : application/octet-stream
0 commit comments