Skip to content

Commit

Permalink
removing the v in the artifact name to not break tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
rbizos committed Dec 26, 2022
1 parent 14f529c commit 3c68203
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

env:
TAG_NAME: ${{github.ref_name}}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,8 +25,9 @@ jobs:
run: make test
- name: Bundle
run: |
tar cvzf carbon-relay-ng-${{github.ref_name}}-linux-amd64.tar.gz carbon-relay-ng
tar cvzf carbon-relay-ng-${TAG_NAME:1}-linux-amd64.tar.gz carbon-relay-ng
echo `sha256sum carbon-relay-ng-*.tar.gz` > sha256
echo "VERSION=${TAG_NAME#v}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -41,8 +45,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./carbon-relay-ng-${{github.ref_name}}-linux-amd64.tar.gz
asset_name: carbon-relay-ng-${{github.ref_name}}-linux-amd64.tar.gz
asset_path: ./carbon-relay-ng-${{env.VERSION}}-linux-amd64.tar.gz
asset_name: carbon-relay-ng-${{env.VERSION}}-linux-amd64.tar.gz
asset_content_type: application/zip
- name: Upload Release Asset checksum
id: upload-release-asset-checksum
Expand Down

0 comments on commit 3c68203

Please sign in to comment.