Skip to content

Commit

Permalink
Fix prerelease config to set version properly
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed May 5, 2024
1 parent 4e39e33 commit 7651813
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
version:
name_template: "{{ if .Tag }}{{ .Tag }}+{{ end }}pre-{{ .ShortCommit }}"

builds:
- main: ./cmd/client/main.go
id: client
Expand Down Expand Up @@ -38,11 +41,9 @@ checksum:
- glob: ./dist/migrations.tar.gz

archives:
- name_template: "{{ .ProjectName }}-v{{ .Version }}-PRERELEASE-{{ .Os }}-{{ .Arch }}"
- name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"

release:
version:
name_template: "{{ if .Tag }}{{ .Tag }}+{{ end }}pre-{{ .ShortCommit }}"
prerelease: true
draft: true
make_latest: false
Expand Down

0 comments on commit 7651813

Please sign in to comment.