diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be96a41..3cb864a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -96,4 +96,9 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }} \ No newline at end of file + HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }} + # Injected via -X ldflag into src/internal/telemetry.APIKey by + # .goreleaser.yaml. Without this env wiring the ldflag resolves + # to the empty string and shipped binaries silently no-op every + # Capture call — telemetry would be dead code for release users. + POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 5b01496..61e3460 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -79,3 +79,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }} + # Injected via -X ldflag into src/internal/telemetry.APIKey by + # .goreleaser.preview.yaml. Without this env wiring the ldflag + # resolves to the empty string and preview binaries can't fire + # telemetry — keep parity with the stable channel so opted-in + # preview users contribute the same signal. + POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}