From 84b641825d6e4ea95690e79808546381865c9f10 Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus <48822818+nieomylnieja@users.noreply.github.com> Date: Sun, 2 Jun 2024 16:53:45 +0200 Subject: [PATCH] fix(release.yml): Correct build image LDFLAGS declaration (#71) Build args may not contain quotes. --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ad507c..569bf6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GORELEASER_TOKEN}} image: runs-on: ubuntu-latest + needs: binary permissions: id-token: write packages: write @@ -61,7 +62,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - LDFLAGS="-s -w -X main.BuildVersion=${{ github.ref }} -X main.BuildGitTag=${{ github.ref }} -X main.BuildDate=${{ steps.date.outputs.date }}" + LDFLAGS=-s -w -X main.BuildVersion=${{ github.ref }} -X main.BuildGitTag=${{ github.ref }} -X main.BuildDate=${{ steps.date.outputs.date }} - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: