-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (45 loc) · 1.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Sentry Deploy Artifact Bundle
on:
push:
branches:
- master
jobs:
push-to-sentry:
name: Deploy to Sentry
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add gyp dependencies
run: sudo apt install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
- name: Build production bundle
uses: borales/actions-yarn@v5
with:
cmd: build-prod
- name: Get version from NPM
id: package-version
uses: martinbeentjes/[email protected]
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: './bin'
version: ${{ steps.package-version.outputs.current-version }}
url_prefix: 'app:///bin/'