build(ci): fix release version label and package names (#3573)
* fix(ci): fix snapshot label Signed-off-by: Deluan <deluan@navidrome.org> * fix(ci): fix package names Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -35,14 +35,16 @@ jobs:
|
|||||||
echo "git describe (dirty): $(git describe --dirty --always --tags)"
|
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 describe --tags: $(git describe --tags `git rev-list --tags --max-count=1`)"
|
||||||
echo "git tag: $(git tag --sort=-committerdate | head -n 1)"
|
echo "git tag: $(git tag --sort=-committerdate | head -n 1)"
|
||||||
|
echo "github_ref: $GITHUB_REF"
|
||||||
git tag -l
|
git tag -l
|
||||||
|
|
||||||
- name: Determine git current SHA and latest tag
|
- name: Determine git current SHA and latest tag
|
||||||
id: git-version
|
id: git-version
|
||||||
run: |
|
run: |
|
||||||
GIT_TAG=$(git tag --sort=-committerdate | head -n 1)
|
GIT_TAG=$(git tag --sort=-committerdate | head -n 1)
|
||||||
if [ -n "$GIT_TAG" ]; then
|
if [ -n "$GIT_TAG" ]; then
|
||||||
GIT_TAG=${GIT_TAG}-SNAPSHOT
|
if [[ "$GITHUB_REF" != refs/tags/* ]]; then
|
||||||
|
GIT_TAG=${GIT_TAG}-SNAPSHOT
|
||||||
|
fi
|
||||||
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_OUTPUT
|
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
GIT_SHA=$(git rev-parse --short HEAD)
|
GIT_SHA=$(git rev-parse --short HEAD)
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ archives:
|
|||||||
- format_overrides:
|
- format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
format: zip
|
format: zip
|
||||||
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "{{ .ProjectName }}_checksums.txt"
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
||||||
@@ -36,6 +37,7 @@ snapshot:
|
|||||||
nfpms:
|
nfpms:
|
||||||
- id: navidrome
|
- id: navidrome
|
||||||
package_name: navidrome
|
package_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.org
|
homepage: https://navidrome.org
|
||||||
description: |-
|
description: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user