diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29e749d..abecbc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,11 @@ jobs: if: ${{ steps.release.outputs.release_created }} run: | npm i ./web - make build + make VERSION="${${{ steps.release.outputs.tag_name }}}" build - name: Upload Release Artifact if: ${{ steps.release.outputs.release_created }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release upload ${{ steps.release.outputs.tag_name }} ./out/tinytune_linux_amd64 \ No newline at end of file + run: | + gh release upload ${{ steps.release.outputs.tag_name }} ./out/tinytune_linux_amd64 + gh release upload latest ./out/tinytune_linux_amd64 \ No newline at end of file diff --git a/Makefile b/Makefile index f19c357..2fefa40 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ help: # prints this help @bash -c "$$AUTOGEN_HELP_BASH" < $(ME) BINARY_NAME=tinytune -VERSION=$(shell git describe --tags --always --abbrev=0 --match='v[0-9]*.[0-9]*.[0-9]*' 2> /dev/null | sed 's/^.//') +VERSION=0.0.1 COMMIT_HASH=$(shell git rev-parse --short HEAD) BUILD_TIMESTAMP=$(shell date '+%Y-%m-%dT%H:%M:%S') LDFLAGS=-ldflags "-X 'main.Version=${VERSION}' -X 'main.CommitHash=${COMMIT_HASH}' -X 'main.BuildTimestamp=${BUILD_TIMESTAMP}' -X 'main.Mode=Production'" diff --git a/README.md b/README.md index ae47a6a..3213855 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The latest version of the TinyTune can be found on the GitHub [releases page](ht # check that you have ffmpeg installed ffmpeg -v -wget https://github.com/alxarno/tinytune/releases/download/v1.3.0/tinytune_linux_amd64 +wget https://github.com/alxarno/tinytune/releases/download/latest/tinytune_linux_amd64 mv tinytune_linux_amd64 /usr/local/bin/tinytune