diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aad961c9..970b7b9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,19 +24,13 @@ jobs: - name: Checkout the repository uses: actions/checkout@master - - name: Extract tag name - id: tag - run: echo ::set-output name=tag::${GITHUB_REF##*/} - - name: Zip binaries shell: bash - env: - TAG: ${{ steps.tag.outputs.tag }} run: | - mv ./bin/linux alphasql_${TAG}_linux_x86_64 - tar -zcvf bin/alphasql_${TAG}_linux_x86_64.tar.gz alphasql_${TAG}_linux_x86_64 - mv ./bin/osx alphasql_${TAG}_darwin_amd64 - tar -zcvf bin/alphasql_${TAG}_darwin_amd64.tar.gz alphasql_${TAG}_darwin_amd64 + mv ./bin/linux alphasql_linux_x86_64 + tar -zcvf bin/alphasql_linux_x86_64.tar.gz alphasql_linux_x86_64 + mv ./bin/osx alphasql_darwin_amd64 + tar -zcvf bin/alphasql_darwin_amd64.tar.gz alphasql_darwin_amd64 - name: Upload Linux Asset id: upload-linux-asset @@ -45,8 +39,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./bin/alphasql_${{ steps.tag.outputs.tag }}_linux_x86_64.tar.gz - asset_name: alphasql_${{ steps.tag.outputs.tag }}_linux_x86_64.tar.gz + asset_path: ./bin/alphasql_linux_x86_64.tar.gz + asset_name: alphasql_linux_x86_64.tar.gz asset_content_type: application/tar+gzip - name: Upload OSX Asset @@ -56,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./bin/alphasql_${{ steps.tag.outputs.tag }}_darwin_amd64.tar.gz - asset_name: alphasql_${{ steps.tag.outputs.tag }}_darwin_amd64.tar.gz + asset_path: ./bin/alphasql_darwin_amd64.tar.gz + asset_name: alphasql_darwin_amd64.tar.gz asset_content_type: application/tar+gzip