Skip to content

Commit

Permalink
get rid of the leading V in version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 21, 2020
1 parent d543e95 commit 331aad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Extract version tag
id: version
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d / )
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d / | tr -d 'v' )

- name: Build tract
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Extract version tag
id: version
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d /)
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d / | tr -d 'v' )

- name: Create Release
id: create_release
Expand All @@ -21,5 +21,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_RELEASE }}
with:
tag_name: ${{ steps.version.outputs.value }}
release_name: ${{ steps.version.outputs.value }}
release_name: tract ${{ steps.version.outputs.value }}

1 change: 0 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ set_version $CRATE/Cargo.toml $VERSION
if [ "$CRATE" = "cli" ]
then
git commit -m "release $VERSION" .
git tag -f "$VERSION"
git tag -f v"$VERSION"
git push -f --tags
fi
Expand Down

0 comments on commit 331aad7

Please sign in to comment.