Skip to content

Commit

Permalink
fix: release scripts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxarno committed Dec 6, 2024
1 parent 437ef62 commit 3e3de65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: |
gh release upload ${{ steps.release.outputs.tag_name }} ./out/tinytune_linux_amd64
gh release upload latest ./out/tinytune_linux_amd64
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e3de65

Please sign in to comment.