Add version to assets (#276)

This commit is contained in:
Denis Isidoro 2020-03-16 08:21:28 -03:00 committed by GitHub
parent 131a635867
commit be4ea8424f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -38,5 +38,5 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/tar/navi.tar.gz
asset_name: navi-${{ matrix.target }}.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.ref }}
asset_name: navi-${{ github.ref }}-${{ matrix.target }}.tar.gz

View file

@ -64,7 +64,7 @@ asset_url() {
local -r variant="${2:-}"
if [[ -n "$variant" ]]; then
echo "https://github.com/denisidoro/navi/releases/download/v${version}/navi-${variant}.tar.gz"
echo "https://github.com/denisidoro/navi/releases/download/v${version}/navi-v${version}-${variant}.tar.gz"
else
echo "https://github.com/denisidoro/navi/archive/v${version}.tar.gz"
fi