-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (54 loc) · 2 KB
/
sentry_release.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
name: Sentry Release
on:
workflow_run:
workflows:
- "Deploy Terra Classic Station"
types:
- completed
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
env:
CI: false
NODE_OPTIONS: "--max_old_space_size=4096"
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Installing Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Installing dependencies
run: npm install
- name: Building project
run: npm run build
# - name: Install sentry-cli
# run: npm install -g @sentry/cli
# - name: Create Sentry release
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: $${{ secrets.SENTRY_PROJECT }}
# shell: bash
# run: |
# sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} releases --org ${{ secrets.SENTRY_ORG }} --project ${{ secrets.SENTRY_PROJECT }} new ${{ github.sha }}
# sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} releases --org ${{ secrets.SENTRY_ORG }} set-commits --auto ${{ github.sha }}
# sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} releases --org ${{ secrets.SENTRY_ORG }} files "${{ github.sha }}" upload-sourcemaps ./build/static/js
# sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} releases --org ${{ secrets.SENTRY_ORG }} finalize ${{ github.sha }}
- 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: ./build/static/js
ignore_missing: true
ignore_empty: true