build: Simplify

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-03 20:13:01 +02:00
parent e7ef620e80
commit eb8e643804
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5

View file

@ -27,11 +27,7 @@ build-release tag version os arch:
GOOS="{{os}}" GOARCH="{{arch}}" just build
mkdir -p yr-{{version}}
cp {{builddir}}/yr yr-{{version}}/
if [ {{os}} = windows ]; then \
mv yr-{{version}}/yr{,.exe}; \
fi
cp {{builddir}}/yr* yr-{{version}}/
tar czf yr-{{version}}-{{os}}-{{arch}}.tar.gz yr-{{version}}
hut git artifact upload --rev {{tag}} yr-{{version}}-{{os}}-{{arch}}.tar.gz