Skip to content

Commit

Permalink
Merge pull request #124 from carlpett/update-release-workflow
Browse files Browse the repository at this point in the history
Replace 'hub' with 'gh' for managing Github releases
  • Loading branch information
carlpett authored Aug 17, 2024
2 parents dcccb25 + 5eccf79 commit 43af302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43af302

Please sign in to comment.