From 9100a6d2ff4e228639852eb2337e70290eecaeaa Mon Sep 17 00:00:00 2001 From: zu1k Date: Fri, 17 Dec 2021 16:19:51 +0800 Subject: [PATCH] Add sha256sum for release Signed-off-by: zu1k --- .github/workflows/go.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 00f5e0a..fea5de3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -32,7 +32,7 @@ jobs: env: NAME: nali BINDIR: bin - run: make -j releases + run: make -j releases && make sha256sum - name: Upload Release uses: softprops/action-gh-release@v1 diff --git a/Makefile b/Makefile index 2ba451f..bf3b77f 100644 --- a/Makefile +++ b/Makefile @@ -100,5 +100,9 @@ $(zip_releases): %.zip : % all-arch: $(PLATFORM_LIST) $(WINDOWS_ARCH_LIST) releases: $(gz_releases) $(zip_releases) + +sha256sum: + cd $(BINDIR); for file in *; do sha256sum $$file > $$file.sha256; done + clean: rm $(BINDIR)/*