Fix release file name
@@ -64,6 +64,9 @@ jobs:
needs: [linux, windows]
runs-on: ubuntu-latest
steps:
+ - name: Get release tag
+ id: vars
+ run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Create Release
id: create_release
uses: actions/create-release@v1
@@ -86,7 +89,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: linux/solang
- asset_name: solang_linux_${{ github.ref }}
+ asset_name: solang_linux_${{ steps.vars.outputs.tag }}
asset_content_type: application/octet-stream
- name: Download Windows release
uses: actions/download-artifact@v1
@@ -100,5 +103,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: windows/solang.exe
- asset_name: solang_windows_${{ github.ref }}.exe
+ asset_name: solang_windows_${{ steps.vars.outputs.tag }}.exe
asset_content_type: application/octet-stream
