Skip to content

Commit

Permalink
ci: bump tp goreleaser v6 (#228)
Browse files Browse the repository at this point in the history
* build(goreleaser): upgrade the config file

* ci(actions): bump the goreleaser action to v6

* ci(actions): bump the goreleaser action version to v6 on the release workflow
  • Loading branch information
danvergara authored Jul 18, 2024
1 parent 40a7e5a commit 0fe0e9f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
go-version: "1.22"
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Check main config file
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ jobs:
echo ${{ env.CURRENT_VERSION }}
- name: Run GoReleaser
if: env.RELEASE_VERSION == env.CURRENT_VERSION
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
distribution: goreleaser
version: '~> v2'
args: release -f .goreleaser.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
12 changes: 11 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -45,7 +55,7 @@ brews:

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
directory: Formula

# Your app's homepage.
# Default is empty.
Expand Down

0 comments on commit 0fe0e9f

Please sign in to comment.