From 7e270bf76c174dbf399573236d62c1cebfaca142 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 11 Nov 2020 15:11:51 -0500 Subject: [PATCH] restore the checksum file during release Signed-off-by: Alex Goodman --- .goreleaser.yaml | 7 +++++++ Makefile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b93427b12..f1fd98345 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -57,6 +57,13 @@ archives: - syft-macos signs: + - artifacts: checksum + cmd: sh + args: + - '-c' + # we should not include the zip artifact, as the artifact is mutated throughout the next macOS notarization step + # note: sed -i is not portable + - 'sed "/.*\.zip/d" ${artifact} > tmpfile && mv tmpfile ${artifact} && gpg --output ${signature} --detach-sign ${artifact}' - id: syft-macos-signing ids: - syft-macos diff --git a/Makefile b/Makefile index e20276431..f44a26289 100644 --- a/Makefile +++ b/Makefile @@ -272,10 +272,10 @@ release: clean-dist ci-bootstrap-mac changelog-release ## Build and publish fina echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml cat .goreleaser.yaml >> $(TEMPDIR)/goreleaser.yaml - # release + # release (note the version transformation from v0.7.0 --> 0.7.0) bash -c "\ BUILD_GIT_TREE_STATE=$(GITTREESTATE) \ - VERSION=$(VERSION) \ + VERSION=$(VERSION:v%=%) \ $(TEMPDIR)/goreleaser \ --rm-dist \ --config $(TEMPDIR)/goreleaser.yaml \