Skip to content

Commit

Permalink
Remove tag from assets path to make it easy to download binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Matts966 committed Jun 10, 2020
1 parent 64461b3 commit 544ee36
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 544ee36

Please sign in to comment.