🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
build(ci): fix release version label and package names (#3573)
Deluan Quintãod4dc8180a26e
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex e318993c3..64b7605de 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -35,14 +35,16 @@ jobs:echo "git describe (dirty): $(git describe --dirty --always --tags)"echo "git describe --tags: $(git describe --tags `git rev-list --tags --max-count=1`)"echo "git tag: $(git tag --sort=-committerdate | head -n 1)"+ echo "github_ref: $GITHUB_REF"git tag -l-- name: Determine git current SHA and latest tagid: git-versionrun: |GIT_TAG=$(git tag --sort=-committerdate | head -n 1)if [ -n "$GIT_TAG" ]; then- GIT_TAG=${GIT_TAG}-SNAPSHOT+ if [[ "$GITHUB_REF" != refs/tags/* ]]; then+ GIT_TAG=${GIT_TAG}-SNAPSHOT+ fiecho "GIT_TAG=$GIT_TAG" >> $GITHUB_OUTPUTfiGIT_SHA=$(git rev-parse --short HEAD)diff --git a/release/goreleaser.yml b/release/goreleaser.ymlindex eb226b7ee..29710357b 100644--- a/release/goreleaser.yml+++ b/release/goreleaser.yml@@ -26,6 +26,7 @@ archives:- format_overrides:- goos: windowsformat: zip+ name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'checksum:name_template: "{{ .ProjectName }}_checksums.txt"@@ -36,6 +37,7 @@ snapshot:nfpms:- id: navidromepackage_name: navidrome+ file_name_template: '{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'homepage: https://navidrome.orgdescription: |-