Skip to content

🎧 Your Personal Streaming Service

Fix versioning releases in the pipeline (#2101)

Deluan Quintãob825d3cfac0a
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 19c8bd20b..c5c61e3cf 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -125,11 +125,12 @@ jobs:
name: js-bundle
path: ui/build
- - name: Show Tags
- run: git tag
-
- - name: Show Version
- run: git describe --tags
+ - name: Config /github/workspace folder as trusted
+ uses: docker://deluan/ci-goreleaser:1.19.5-1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ args: /bin/bash -c "git config --global --add safe.directory /github/workspace; git describe --dirty --always --tags"
- name: Run GoReleaser - SNAPSHOT
if: startsWith(github.ref, 'refs/tags/') != true
diff --git a/.goreleaser.yml b/.goreleaser.yml
index cdf058c1f..1679f3f09 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -1,10 +1,6 @@
# GoReleaser config
project_name: navidrome
-before:
- hooks:
- - go env -w GOFLAGS="-buildvcs=false"
-
builds:
- id: navidrome_linux_amd64
env: