Skip to content

Commit e409679

Browse files
committed
Merge branch 'main' of https://github.com/ferg-cod3s/rune
2 parents 63a2306 + 5f04b80 commit e409679

File tree

1 file changed

+28
-21
lines changed

1 file changed

+28
-21
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,23 @@ jobs:
3030
- name: Run tests
3131
run: go test -v ./...
3232

33-
# - name: Create Sentry Release
34-
# uses: getsentry/action-release@v1
35-
# env:
36-
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
37-
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
38-
# SENTRY_PROJECT: rune
39-
# with:
40-
# environment: production
41-
# version: ${{ github.ref_name }}
33+
- name: Create Sentry Release
34+
uses: getsentry/action-release@v1
35+
env:
36+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
37+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
38+
SENTRY_PROJECT: rune
39+
with:
40+
environment: production
41+
version: ${{ github.ref_name }}
42+
43+
- name: Generate GitHub App token
44+
id: app-token
45+
uses: tibdex/github-app-token@v2
46+
with:
47+
app_id: ${{ secrets.HOMEBREW_APP_ID }}
48+
installation_id: ${{ secrets.HOMEBREW_APP_INSTALLATION_ID }}
49+
private_key: ${{ secrets.HOMEBREW_APP_PRIVATE_KEY }}
4250

4351
- name: Run GoReleaser
4452
uses: goreleaser/goreleaser-action@v5
@@ -47,18 +55,17 @@ jobs:
4755
version: v2.11.0
4856
args: release --clean
4957
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
HOMEBREW_TAP_PAT: ${{ secrets.HOMEBREW_TAP_PAT }}
58+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5259
RUNE_SEGMENT_WRITE_KEY: ${{ secrets.RUNE_SEGMENT_WRITE_KEY }}
5360
RUNE_SENTRY_DSN: ${{ secrets.RUNE_SENTRY_DSN }}
5461

55-
# - name: Finalize Sentry Release
56-
# uses: getsentry/action-release@v1
57-
# env:
58-
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
59-
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
60-
# SENTRY_PROJECT: rune
61-
# with:
62-
# environment: production
63-
# version: ${{ github.ref_name }}
64-
# finalize: true
62+
- name: Finalize Sentry Release
63+
uses: getsentry/action-release@v1
64+
env:
65+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
66+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
67+
SENTRY_PROJECT: rune
68+
with:
69+
environment: production
70+
version: ${{ github.ref_name }}
71+
finalize: true

0 commit comments

Comments
 (0)