aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--build.yml3
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 29f6fd9..398cdc3 100644
--- a/Makefile
+++ b/Makefile
@@ -4,4 +4,6 @@ build:
go build -ldflags="-X 'main.Version=${VERSION}'"
tar: build
- tar -cvf midr-${VERSION}.tar.xz midr templates/
+ git archive \
+ -o midr-${VERSION}.tar.gz \
+ --prefix=midr-${VERSION}/ HEAD
diff --git a/build.yml b/build.yml
index cb918cc..ec137a9 100644
--- a/build.yml
+++ b/build.yml
@@ -13,7 +13,7 @@ secrets:
environment:
deploy: builds@gabrielgio.me
- target: artifacts.gabrielgio.me/midr
+ target: artifacts.gabrielgio.me/midr/
GOPROXY: direct
XZ_OPT: -9
@@ -26,4 +26,3 @@ tasks:
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP *.tar.xz $deploy:/var/www/$target
-