Skip to content

Commit 6f18392

Browse files
authored
Pull Homebrew tap token from Doppler at release time (#27)
GoReleaser now runs under doppler run so HOMEBREW_TAP_GITHUB_TOKEN is injected from the release-tooling/prd Doppler config via the scoped DOPPLER_TOKEN repo secret, instead of being passed directly as a GitHub secret env var.
1 parent 43bc8cd commit 6f18392

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,20 @@ jobs:
3333
password: ${{ secrets.GITHUB_TOKEN }}
3434

3535
# GoReleaser builds cross-platform binaries, the container image, and the GitHub release
36-
- uses: goreleaser/goreleaser-action@v6
36+
- name: Install GoReleaser
37+
uses: goreleaser/goreleaser-action@v6
3738
with:
3839
version: '~> v2'
39-
args: release --clean
40+
install-only: true
41+
42+
- name: Install Doppler CLI
43+
uses: dopplerhq/cli-action@v3
44+
45+
- name: GoReleaser release (Homebrew tap token via Doppler)
46+
run: doppler run -- goreleaser release --clean
4047
env:
48+
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
4149
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
4350

4451
# Dogfood: full pipeline against reference project + sign the binary
4552
- name: Build forgeseal for dogfooding

0 commit comments

Comments
 (0)