aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2024-02-14 00:59:03 +0100
committerGravatar shtlrs <[email protected]>2024-02-14 10:12:52 +0100
commit4660de572d93f792e66ecfb2a17ad0af63da52b6 (patch)
tree85bed8ad6d7e7d881c2568181df54d95b11601eb
parentcatch event errors & push them with custom scope (diff)
add a sentry release workflow
-rw-r--r--.github/workflows/main.yaml6
-rw-r--r--.github/workflows/sentry_release.yaml23
2 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 72afbde..3ae64f6 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -33,3 +33,9 @@ jobs:
with:
sha-tag: ${{ needs.generate-sha-tag.outputs.sha-tag }}
secrets: inherit
+
+ sentry-release:
+ if: github.ref == 'refs/heads/main'
+ uses: ./.github/workflows/sentry_release.yaml
+ needs: build-deploy
+ secrets: inherit
diff --git a/.github/workflows/sentry_release.yaml b/.github/workflows/sentry_release.yaml
new file mode 100644
index 0000000..9a8513b
--- /dev/null
+++ b/.github/workflows/sentry_release.yaml
@@ -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: king-arthur
+ with:
+ tagName: ${{ github.sha }}
+ environment: production
+ releaseNamePrefix: king-arthur@