From d679c29af485f48eba81b632d7e12109c6ce1714 Mon Sep 17 00:00:00 2001 From: Sakshi-dell <75004921+Sakshi-dell@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:04:10 +0530 Subject: [PATCH] gorelease update (#147) --- .github/workflows/release.yml | 26 -------------------------- .goreleaser.yml | 22 ++-------------------- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index d11db69f..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Copied from https://github.com/hashicorp/terraform-provider-scaffolding/blob/master/.github/workflows/release.yml -name: release -on: - push: - tags: - - "v*" -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Unshallow - run: git fetch --prune --unshallow - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.15 - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 7ce31858..1b1f8672 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,3 @@ -# Copied from https://github.com/hashicorp/terraform-provider-scaffolding/blob/master/.goreleaser.yml -# as suggested at https://www.terraform.io/docs/registry/providers/publishing.html#using-goreleaser-locally -# # Visit https://goreleaser.com for documentation on how to customize this # behavior. before: @@ -20,7 +17,6 @@ builds: - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' goos: - freebsd - - windows - linux - darwin goarch: @@ -31,8 +27,6 @@ builds: ignore: - goos: darwin goarch: '386' - - goos: darwin - goarch: "arm64" binary: '{{ .ProjectName }}_v{{ .Version }}' archives: - format: zip @@ -43,23 +37,11 @@ checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 -signs: - - artifacts: checksum - args: - # if you are using this in a GitHub action or some other automated pipeline, you - # need to pass the batch flag to indicate its not interactive. - - "--batch" - - "--local-user" - - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key - - "--output" - - "${signature}" - - "--detach-sign" - - "${artifact}" release: extra_files: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' # If you want to manually examine the release before its live, uncomment this line: - # draft: true + draft: true changelog: - skip: true + skip: true \ No newline at end of file