Skip to content

Commit

Permalink
Merge pull request #126 from nspadaccino/nspadaccino/goreleaser-update
Browse files Browse the repository at this point in the history
Update Goreleaser
  • Loading branch information
nspadaccino authored Aug 7, 2024
2 parents ff95450 + 343c0e2 commit 42b9552
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ 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

- 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
Expand All @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

builds:
- env:
- CGO_ENABLED=0
Expand Down Expand Up @@ -46,5 +48,4 @@ release:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
changelog:
skip: false
use: github-native
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 42b9552

Please sign in to comment.