From 5eccf79b43609eb9d7aedf348104bf33aad9124a Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Sat, 17 Aug 2024 22:23:47 +0200 Subject: [PATCH] Replace 'hub' with 'gh' for managing Github releases --- GNUmakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 57c43f86..0f3a0500 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -34,16 +34,16 @@ $(GOPATH)/bin/gox: # Need to disable modules for this to not pollute go.mod @GO111MODULE=off go get -u github.com/mitchellh/gox -# This uses the `hub` tool, which is preinstalled on GitHub Actions runners. +# This uses the `gh` tool, which is preinstalled on GitHub Actions runners. release: crossbuild @echo ">> uploading release $(VERSION)" mkdir -p releases set -e; for OSARCH in $(OSARCH_COMBOS); do \ zip -j releases/terraform-provider-sops_$(RELEASE)_$$OSARCH.zip binaries/$(VERSION)/$$OSARCH/terraform-provider-sops_* > /dev/null; \ - hub release edit -m "" -a "releases/terraform-provider-sops_$(RELEASE)_$$OSARCH.zip#terraform-provider-sops_$(RELEASE)_$$OSARCH.zip" $(VERSION); \ + gh release upload $(VERSION) "releases/terraform-provider-sops_$(RELEASE)_$$OSARCH.zip#terraform-provider-sops_$(RELEASE)_$$OSARCH.zip"; \ done @echo ">>> generating sha256sums:" cd releases; sha256sum *.zip | tee terraform-provider-sops_$(RELEASE)_SHA256SUMS - hub release edit -m "" -a "releases/terraform-provider-sops_$(RELEASE)_SHA256SUMS#terraform-provider-sops_$(RELEASE)_SHA256SUMS" $(VERSION) + gh release upload $(VERSION) "releases/terraform-provider-sops_$(RELEASE)_SHA256SUMS#terraform-provider-sops_$(RELEASE)_SHA256SUMS" .PHONY: all style vet test build crossbuild release