Skip to content

Commit 9cb58c2

Browse files
authored
feat: Create releases and upload sourcemaps (#2876)
1 parent ad36e6b commit 9cb58c2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,14 @@ jobs:
4242
gitlab-pipeline-url: ${{ secrets.GITLAB_CDN_DEPLOYER_URL }}
4343
env:
4444
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
- name: Create Sentry release
46+
if: github.event_name == 'release' && github.event.action == 'created'
47+
uses: getsentry/action-release@v1
48+
env:
49+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
50+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
51+
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
52+
with:
53+
sourcemaps: ${{ github.workspace }}/build
54+
version: '${{ vars.SENTRY_RELEASE_PREFIX }}@${{ github.event.release.tag_name }}'
55+
url_prefix: '~'

0 commit comments

Comments
 (0)