Skip to content

Commit

Permalink
fix: change GoReleaser args
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Oct 20, 2024
1 parent ad2f75f commit 3410b8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Set RELEASE_VERSION env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod download
Expand All @@ -20,8 +22,8 @@ brews:
- name: travelgrunt
homepage: 'https://github.com/ivanilves/travelgrunt'
description: 'cd inside [mono]repos without fatigue!'
folder: Formula
tap:
directory: Formula
repository:
owner: ivanilves
name: homebrew-tap

Expand All @@ -34,7 +36,7 @@ checksum:
algorithm: sha256

snapshot:
name_template: "{{ .Tag }}-snapshot"
version_template: "{{ .Tag }}-snapshot"

changelog:
use: github-native
Expand Down

0 comments on commit 3410b8a

Please sign in to comment.