Skip to content

Commit

Permalink
Update golreaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Dec 8, 2024
1 parent cf725b6 commit e7379dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- 'v*'
- "v*"

jobs:
goreleaser:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
version: "~> v2"
args: release
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
version: "~> v2"
args: release --snapshot
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- binary: "{{ .ProjectName }}_v{{ .Version }}"
env:
Expand Down Expand Up @@ -37,4 +38,4 @@ signs:
- "--detach-sign"
- "${artifact}"
snapshot:
name_template: "{{ .Version }}-next"
version_template: "{{ .Version }}-next"

0 comments on commit e7379dd

Please sign in to comment.