diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9de631..803c02e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + - name: Run tests run: make test shell: bash @@ -22,11 +27,6 @@ jobs: - name: Unshallow run: git fetch --prune --unshallow - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.17 - - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v6 @@ -35,9 +35,10 @@ jobs: passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: - version: latest + distribution: goreleaser + version: 2 args: release --clean env: GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yml b/.goreleaser.yml index ca0b214..c341d4e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + builds: - env: - CGO_ENABLED=0 @@ -46,5 +48,4 @@ release: - glob: 'terraform-registry-manifest.json' name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' changelog: - skip: false use: github-native diff --git a/go.mod b/go.mod index 1306872..e48ca20 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vinyldns/terraform-provider-vinyldns -go 1.17 +go 1.18 require ( github.com/hashicorp/terraform-plugin-sdk v1.7.0