midr @ 40d80bde511a7a76a0f5a3c16afc9eef2e5972e2

fix: Using git to archive

Now it uses git to better archive the tar ball.

Source:

- https://git.sr.ht/~sircmpwn/hub.sr.ht/tree/master/item/.builds/alpine.yml#L25
diff --git a/Makefile b/Makefile
index 29f6fd9526beeda82f21317b8829e784b6749463..398cdc326527abe7b6e47459a84712f148f66609 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 cb918cc5f830152e3b098bd56c8f8792cc8bf810..ec137a9e850eb158ba0106c0bf8b3473f87e30ea 100644
--- a/build.yml
+++ b/build.yml
@@ -13,7 +13,7 @@   - 008c4f67-b864-47f8-9790-cd32f2ae8516
 
 environment:
   deploy: builds@gabrielgio.me
-  target: artifacts.gabrielgio.me/midr
+  target: artifacts.gabrielgio.me/midr/
   GOPROXY: direct
   XZ_OPT: -9
 
@@ -26,4 +26,3 @@       cd midr
       sshopts="ssh -o StrictHostKeyChecking=no"
       rsync --rsh="$sshopts" -rP *.tar.xz $deploy:/var/www/$target
 
-