Skip to content

Commit acdbac0

Browse files
authored
Merge pull request #206 from mac-zhou/master
2 parents 854e747 + 4da33a5 commit acdbac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ test-win32:
4141

4242
releases: linux macos-amd64 macos-arm64 win64 win32
4343
chmod +x $(BINDIR)/$(NAME)-*
44+
tar czf $(BINDIR)/$(NAME)-linux.tgz -C $(BINDIR) $(NAME)-linux
4445
gzip $(BINDIR)/$(NAME)-linux
4546
gzip $(BINDIR)/$(NAME)-macos-amd64
4647
gzip $(BINDIR)/$(NAME)-macos-arm64
@@ -54,6 +55,7 @@ clean:
5455
GITHUB_UPLOAD_URL=$(shell echo $${GITHUB_RELEASE_UPLOAD_URL%\{*})
5556

5657
upload: releases
58+
curl -H "Authorization: token $(GITHUB_TOKEN)" -H "Content-Type: application/gzip" --data-binary @$(BINDIR)/$(NAME)-linux.tgz "$(GITHUB_UPLOAD_URL)?name=$(NAME)-linux.tgz"
5759
curl -H "Authorization: token $(GITHUB_TOKEN)" -H "Content-Type: application/gzip" --data-binary @$(BINDIR)/$(NAME)-linux.gz "$(GITHUB_UPLOAD_URL)?name=$(NAME)-linux.gz"
5860
curl -H "Authorization: token $(GITHUB_TOKEN)" -H "Content-Type: application/gzip" --data-binary @$(BINDIR)/$(NAME)-macos-amd64.gz "$(GITHUB_UPLOAD_URL)?name=$(NAME)-macos-amd64.gz"
5961
curl -H "Authorization: token $(GITHUB_TOKEN)" -H "Content-Type: application/gzip" --data-binary @$(BINDIR)/$(NAME)-macos-arm64.gz "$(GITHUB_UPLOAD_URL)?name=$(NAME)-macos-arm64.gz"

0 commit comments

Comments
 (0)