Skip to content

Commit

Permalink
fix version name format
Browse files Browse the repository at this point in the history
  • Loading branch information
hidetatz committed Aug 16, 2023
1 parent 0eb2184 commit fb3eca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: compute the upcoming version from the current latest version
run: |
# This fetches the current latest tag
cur_ver=$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags https://github.com/hidetatz/shiba.git 'v*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)
cur_ver=$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags https://github.com/hidetatz/shiba.git 'shiba*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)
echo "current version: $cur_ver"
# This increments the patch version
# https://stackoverflow.com/questions/6245293/extract-version-number-from-file-in-shell-script
Expand All @@ -30,9 +30,9 @@ jobs:
- name: build files
run: |
make
tar -zcvf shiba${{ steps.version.outputs.ver }}.linux_amd64.tar.gz ./shiba
tar -zcvf ${{ steps.version.outputs.ver }}.linux_amd64.tar.gz ./shiba
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.version.outputs.ver }}
files: shiba${{ steps.version.outputs.ver }}.linux_amd64.tar.gz
files: ${{ steps.version.outputs.ver }}.linux_amd64.tar.gz

0 comments on commit fb3eca6

Please sign in to comment.