Add Sentry Release action (#806)

This commit is contained in:
Piotr Rogowski 2022-10-18 16:47:25 +02:00 committed by GitHub
parent 5febdb3f54
commit 37ac36d784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
.github/workflows/sentry-release.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Sentry Release
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
release:
runs-on: ubuntu-latest
env:
NPM_GITHUB_TOKEN: ${{ secrets.NPM_GITHUB_PAT }}
steps:
- uses: actions/checkout@v3
- name: Sentry Release
uses: getsentry/action-release@v1.2.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
ignore_empty: true