-
-
Notifications
You must be signed in to change notification settings - Fork 40
42 lines (39 loc) · 1.17 KB
/
sentry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Sentry Release"
on:
push:
branches:
- main
paths-ignore:
- "DisCatSharp.Docs/**"
- "DisCatSharp.Archive/**"
- "DisCatSharp.Tools/**"
- "DisCatSharp.Logos/**"
- "DisCatSharp.Attributes/**"
- "*.md"
- "*.json"
release:
types:
- published
permissions: write-all
jobs:
release:
name: Sentry Release
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: Set outputs
id: vars
run: |
echo "version=10.4.2" >> $GITHUB_OUTPUT
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: "Create Sentry release"
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: ${{ github.event_name == 'release' && github.event.action == 'published' && 'prod' || 'dev' }}
ignore_missing: true
version: DisCatSharp@${{ steps.vars.outputs.version }}+${{ steps.vars.outputs.sha }}