Skip to content

Commit 54c851b

Browse files
authored
ci: pass POSTHOG_API_KEY through to release builds (#96)
1 parent 1480ab4 commit 54c851b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,9 @@ jobs:
9696
args: release --clean
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99-
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
99+
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
100+
# Injected via -X ldflag into src/internal/telemetry.APIKey by
101+
# .goreleaser.yaml. Without this env wiring the ldflag resolves
102+
# to the empty string and shipped binaries silently no-op every
103+
# Capture call — telemetry would be dead code for release users.
104+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}

.github/workflows/preview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ jobs:
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
82+
# Injected via -X ldflag into src/internal/telemetry.APIKey by
83+
# .goreleaser.preview.yaml. Without this env wiring the ldflag
84+
# resolves to the empty string and preview binaries can't fire
85+
# telemetry — keep parity with the stable channel so opted-in
86+
# preview users contribute the same signal.
87+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}

0 commit comments

Comments
 (0)