Fix versioning releases in the pipeline (#2101)

* Revert "Disable buildvcs flag"

This reverts commit 1374dab087.

* Config /github/workspace folder as trusted
This commit is contained in:
Deluan Quintão 2023-01-25 15:35:01 -05:00 committed by GitHub
parent 1950c07b1d
commit b825d3cfac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View File

@ -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

View File

@ -1,10 +1,6 @@
# GoReleaser config
project_name: navidrome
before:
hooks:
- go env -w GOFLAGS="-buildvcs=false"
builds:
- id: navidrome_linux_amd64
env: