diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 19c8bd20..c5c61e3c 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 cdf058c1..1679f3f0 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: