diff --git a/.github/workflows/release-provider.yml b/.github/workflows/release-provider.yml index c8164f0..c2cdb8d 100644 --- a/.github/workflows/release-provider.yml +++ b/.github/workflows/release-provider.yml @@ -50,9 +50,9 @@ jobs: uses: crazy-max/ghaction-import-gpg@v3 with: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - passphase: ${{ secrets.PASSPHRASE }} + passphrase: ${{ secrets.PASSPHRASE }} - name: Release provider - uses: goreleaser/goreleaser-action@v1 + uses: goreleaser/goreleaser-action@v2.4.1 with: version: latest args: release --rm-dist diff --git a/.goreleaser.yml b/.goreleaser.yml index a7be5ce..7800e42 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,9 +5,13 @@ # behavior. before: hooks: + # this is just an example and not a requirement for provider building/publishing - go mod tidy builds: - env: + # goreleaser does not work with CGO, it could also complicate + # usage by users in CI/CD systems like Terraform Cloud where + # they are unable to install libraries. - CGO_ENABLED=0 mod_timestamp: '{{ .CommitTimestamp }}' flags: @@ -28,11 +32,7 @@ builds: goarch: '386' binary: '{{ .ProjectName }}_v{{ .Version }}' archives: -- id: zip - format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' -- id: default - format: tar.gz +- format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' @@ -50,7 +50,7 @@ signs: - "--detach-sign" - "${artifact}" release: - # Visit your project's GitHub Releases page to publish this release. - draft: false + # If you want to manually examine the release before its live, uncomment this line: + # draft: true changelog: - skip: false + skip: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 2574555..ef3676e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,3 @@ -## v0.2.4 (Unreleased) -### Improvements -* Upgrade Terraform Plugin SDK to v2 ([#67](https://github.com/mercari/terraform-provider-spinnaker/pull/67) - ## [v0.2.4] - 2020-09-04 ### Pull Requests