aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-31 08:36:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-31 08:43:35 +0530
commitc7e2dc0005f55c921fa26edf130db75400d88c1d (patch)
treecf0d8ab3dafe1985b0d49ad0cab7d2cc24326851 /Makefile
parent6b093f213f45d4a7201dd8b4235a7bd0fbc64952 (diff)
downloadnnn-c7e2dc0005f55c921fa26edf130db75400d88c1d.tar.gz
Upload static binary as package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce2eb93..b1ed978 100644
--- a/Makefile
+++ b/Makefile
@@ -117,12 +117,14 @@ upload-local: sign static
curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION).tar.gz.sig' \
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \
--upload-file nnn-$(VERSION).tar.gz.sig
+ tar -cf $(BIN)-static-$(VERSION).x86-64.tar.gz $(BIN)-static
curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION)-static' \
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/x-sharedlib' \
- --upload-file $(BIN)-static
+ --upload-file $(BIN)-static-$(VERSION).x86-64.tar.gz
clean:
- $(RM) -f $(BIN) $(BIN)-static nnn-$(VERSION).tar.gz *.sig
+ $(RM) -f $(BIN) nnn-$(VERSION).tar.gz *.sig \
+ $(BIN)-static $(BIN)-static-$(VERSION).x86-64.tar.gz
skip: ;