Skip to content

Commit

Permalink
Add CI to create a sentry release
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Jan 31, 2024
1 parent 89216a9 commit a2bd7f8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ jobs:
with:
sha-tag: ${{ needs.generate-inputs.outputs.sha-tag }}
secrets: inherit

sentry-release:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/sentry_release.yaml
needs: build-deploy
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/sentry_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create Sentry release

on:
workflow_call


jobs:
create_sentry_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create a Sentry.io release
uses: tclindner/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: python-discord
SENTRY_PROJECT: sir-robin
with:
tagName: ${{ github.sha }}
environment: production
releaseNamePrefix: sir-robin@

0 comments on commit a2bd7f8

Please sign in to comment.