From b09c928d45afe8aa766d8aa794147fc646b54f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Sat, 26 Oct 2024 19:15:57 +0200 Subject: [PATCH] build: Add $TAG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim HĂ„rek Andreassen --- .build.yml | 10 ++++------ Makefile | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.build.yml b/.build.yml index 3c11967..472897a 100644 --- a/.build.yml +++ b/.build.yml @@ -22,9 +22,7 @@ tasks: complete-build fi - version=$(echo "$tag" | tr -d 'v') - - make GOOS="darwin" ARCH="amd64" build-release - make GOOS="dawrin" ARCH="aarch64" build-release - make GOOS="linux" ARCH="amd64" build-release - make GOOS="windows" ARCH="amd64" build-release + make GOOS="darwin" ARCH="amd64" tag=$tag build-release + make GOOS="dawrin" ARCH="aarch64" tag=$tag build-release + make GOOS="linux" ARCH="amd64" tag=$tag build-release + make GOOS="windows" ARCH="amd64" tag=$tag build-release diff --git a/Makefile b/Makefile index 4e2bf3e..6f30b3e 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ build-release: build cp $(builddir)/yr* yr-$(VERSION)/ tar czf yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz yr-$(VERSION) - hut git artifact upload --rev $(tag) yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz + hut git artifact upload --rev $(TAG) yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz .PHONY: test test: