From 6bd31b832c81e5116027dbd27944652429d444b5 Mon Sep 17 00:00:00 2001 From: Jeanne Angeles Franco Date: Thu, 28 Apr 2022 14:44:11 -0700 Subject: [PATCH] Update to include terraform registry manifest --- .goreleaser.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8e7cb3f1f6a7..3e1157c789c0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -45,14 +45,13 @@ publishers: # Terraform CLI 0.10 - 0.11 perform discovery via HTTP headers on releases.hashicorp.com # For providers which have existed since those CLI versions, exclude # discovery by setting the protocol version headers to 5. - cmd: hc-releases upload -product {{ .ProjectName }} -version {{ .Version }} -file={{ .ArtifactPath }} -header=x-terraform-protocol-version=5 -header=x-terraform-protocol-versions=5.0 + cmd: hc-releases upload -product {{ .ProjectName }} -version {{ .Version }} -file={{ .ArtifactPath }}={{ .ArtifactName }} -header=x-terraform-protocol-version=5 -header=x-terraform-protocol-versions=5.0 env: - HC_RELEASES_HOST={{ .Env.HC_RELEASES_HOST }} - HC_RELEASES_KEY={{ .Env.HC_RELEASES_KEY }} - # Commenting this out for now since it's not currently supported at the moment - # extra_files: - # - glob: 'terraform-registry-manifest.json' - # name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' + extra_files: + - glob: 'terraform-registry-manifest.json' + name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' name: upload signature: true release: