From 9b4a20515aee9c0557e49c71b07d9b8dd8ad7ef6 Mon Sep 17 00:00:00 2001 From: Raul Bernal Date: Thu, 10 Oct 2024 12:09:20 +0200 Subject: [PATCH 1/3] Update Makefile to compress files with tar.gz --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 153ffa49..4468139f 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,9 @@ build-reproducible-generic: go.sum mkdir -p build $(DOCKER) create -ti --name $(subst /,-,latest-build-$(PLATFORM)) latest-build-$(PLATFORM) bcnad $(DOCKER) cp -a $(subst /,-,latest-build-$(PLATFORM)):/usr/local/bin/bcnad $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)) - sha256sum $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)) >> $(BUILD_DIR)/bcnad_sha256.txt + tar -czvf $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)).tar.gz -C $(BUILD_DIR) bcnad_$(subst /,_,$(PLATFORM)) + rm $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)) + sha256sum $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)).tar.gz >> $(BUILD_DIR)/bcnad_sha256.txt # Add check to make sure we are using the proper Go version before proceeding with anything check-go-version: From d418195f30c536c5cbb5b4e20ca4d7ed7921f9b5 Mon Sep 17 00:00:00 2001 From: Raul Bernal Date: Thu, 10 Oct 2024 12:24:09 +0200 Subject: [PATCH 2/3] Update release.yml try to exec only in releases --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb2d3334..dd0934c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,8 @@ name: "Release" on: - push: - tags: - - v* - branches: - - v4 + release: + types: [published] jobs: draft-release: runs-on: ubuntu-latest From 01db54dde1ba80f00c77037423df6f1abd9e57d3 Mon Sep 17 00:00:00 2001 From: Raul Bernal Date: Thu, 10 Oct 2024 12:53:20 +0200 Subject: [PATCH 3/3] Update release.yml fix the files names --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd0934c5..a8d489cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,6 @@ jobs: with: draft: true files: | - build/bcnad_linux_arm64 - build/bcnad_linux_amd64 + build/bcnad_linux_arm64.tar.gz + build/bcnad_linux_amd64.tar.gz build/bcnad_sha256.txt