Skip to content

Commit

Permalink
fix: upgrade goreleaser config to v2 (#59)
Browse files Browse the repository at this point in the history
* fix: upgrade goreleaser config to v2

* add workflow for goreleaser PR checks
  • Loading branch information
anGie44 authored Dec 25, 2024
1 parent cd917b5 commit 4bcd95c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/terraform-provider-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Terraform Provider Checks

on:
pull_request:
paths:
- .github/workflows/terraform-provider-checks.yml
- .goreleaser.yml
- internal/**
- main.go

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
- name: goreleaser check
continue-on-error: true
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
args: check
- name: goreleaser build
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
args: build --snapshot
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
Expand Down Expand Up @@ -57,4 +58,4 @@ release:
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
skip: true
disable: true

0 comments on commit 4bcd95c

Please sign in to comment.