Skip to content

Commit a1ff815

Browse files
committed
Add Sentry release job to GitHub Actions workflow
This update introduces a new job in the GitHub Actions workflow that creates a Sentry release when a new version is published. The job includes steps for checking out the repository and using the Sentry action to create a release with the appropriate environment and version information.
1 parent 984c33a commit a1ff815

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,24 @@ jobs:
159159
uses: codecov/codecov-action@v5
160160
with:
161161
files: ./coverage.xml
162+
163+
sentry-release:
164+
if: github.event.action == 'published' && github.repository == 'jazzband/website'
165+
runs-on: ubuntu-latest
166+
needs: [test]
167+
168+
steps:
169+
- name: Checkout
170+
uses: actions/checkout@v4
171+
with:
172+
fetch-depth: 0
173+
174+
- name: Create Sentry release
175+
uses: getsentry/action-release@v1
176+
env:
177+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
178+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
179+
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
180+
with:
181+
environment: production
182+
version: ${{ github.ref_name }}

0 commit comments

Comments
 (0)