From 21e43e365d490eb0a9182895aaa5e45a2c00a025 Mon Sep 17 00:00:00 2001 From: John McBride Date: Mon, 16 Oct 2023 16:06:36 -0600 Subject: [PATCH] fix: Release pipeline missing some env vars Signed-off-by: John McBride --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4543068..846831d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -71,8 +71,8 @@ jobs: run: | GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \ -ldflags="-s -w" \ - -ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.writeOnlyPublicPosthogKey=${{ secrets.POSTHOG_WRITE_PUBLIC_KEY }}'" \ - -ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Version={{ needs.release.outputs.release-tag }}'" \ + -ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.writeOnlyPublicPosthogKey=${{ var.POSTHOG_WRITE_PUBLIC_KEY }}'" \ + -ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Version=${{ needs.release.outputs.release-tag }}'" \ -ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Sha=$(git rev-parse HEAD)'" \ -o build/pizza-${{ matrix.goos }}-${{ matrix.goarch }} gh release upload ${{ needs.release.outputs.release-tag }} build/pizza-${{ matrix.goos }}-${{ matrix.goarch }}