From c7e2dc0005f55c921fa26edf130db75400d88c1d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 31 Jan 2020 08:36:53 +0530 Subject: [PATCH] Upload static binary as package --- Makefile | 6 ++++-- 1 file 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: ;