diff --git a/.github/workflows/build-binary.yml b/.github/workflows/build-binary.yml index 22d943d..b062b8f 100644 --- a/.github/workflows/build-binary.yml +++ b/.github/workflows/build-binary.yml @@ -2,8 +2,8 @@ name: Wails build on: push: - branches: - - main + tags: + - '*' jobs: build: diff --git a/Makefile b/Makefile index 05d7f9e..275653e 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,10 @@ test: test-backend test-frontend .PHONY: build-windows build-windows: - @wails build -platform windows/amd64 \ No newline at end of file + @wails build -platform windows/amd64 + +release_version := $(shell git rev-parse --short HEAD) +.PHONY: release +release: + @git tag -a v-"$(release_version)" -m "$(release_version)" + @git push --tags