build: Add $TAG
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
2077eb5a25
commit
b09c928d45
2 changed files with 5 additions and 7 deletions
10
.build.yml
10
.build.yml
|
@ -22,9 +22,7 @@ tasks:
|
||||||
complete-build
|
complete-build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version=$(echo "$tag" | tr -d 'v')
|
make GOOS="darwin" ARCH="amd64" tag=$tag build-release
|
||||||
|
make GOOS="dawrin" ARCH="aarch64" tag=$tag build-release
|
||||||
make GOOS="darwin" ARCH="amd64" build-release
|
make GOOS="linux" ARCH="amd64" tag=$tag build-release
|
||||||
make GOOS="dawrin" ARCH="aarch64" build-release
|
make GOOS="windows" ARCH="amd64" tag=$tag build-release
|
||||||
make GOOS="linux" ARCH="amd64" build-release
|
|
||||||
make GOOS="windows" ARCH="amd64" build-release
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -30,7 +30,7 @@ build-release: build
|
||||||
cp $(builddir)/yr* yr-$(VERSION)/
|
cp $(builddir)/yr* yr-$(VERSION)/
|
||||||
|
|
||||||
tar czf yr-$(VERSION)-$(GOOS)-$(ARCH).tar.gz 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
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
|
|
Loading…
Reference in a new issue