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