From cabeeddae091cdfe9e9a241026ab75bb13bb23f3 Mon Sep 17 00:00:00 2001 From: cabaalexander Date: Thu, 30 May 2024 10:49:48 -0400 Subject: [PATCH] enable release upload artifact --- .github/workflows/build-binary.yml | 4 ++-- Makefile | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) 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