Skip to content

Commit

Permalink
chore: use non-deprecated version_template in goreleaser config
Browse files Browse the repository at this point in the history
Signed-off-by: lvlcn-t <[email protected]>
  • Loading branch information
lvlcn-t committed Nov 19, 2024
1 parent 16c6a90 commit a0a5dc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# We need to fetch tags because we want to name our snapshot artifacts <tag>-commit-<short-commit>.
# We don't use checkout/fetch-tags: true because it's broken.
# For more information see: https://github.com/actions/checkout/issues/1471
- name: Fetch tags explicitly
run: git fetch --prune --unshallow --tags

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project_name: sparrow
snapshot:
name_template: "commit-{{ .ShortCommit }}"
version_template: "{{ .Tag }}-commit-{{ .ShortCommit }}"
builds:
- env: [CGO_ENABLED=0]
ldflags:
Expand Down

0 comments on commit a0a5dc8

Please sign in to comment.