aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-08 23:39:22 +0100
committerGravatar Joe Banks <[email protected]>2020-10-08 23:39:22 +0100
commita60a0405cb258bb5092f621cbcdc4cf826f600a6 (patch)
tree27e1bf1bb4f8890bc62668b668cc8fcbe50bd59d /.github/workflows
parentReport release information to Sentry (diff)
Create Sentry release on push
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/create_sentry_release.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/create_sentry_release.yml b/.github/workflows/create_sentry_release.yml
new file mode 100644
index 0000000..6daf552
--- /dev/null
+++ b/.github/workflows/create_sentry_release.yml
@@ -0,0 +1,34 @@
+name: Create Sentry release
+
+on:
+ push:
+ branches: [ main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: EgorDm/gha-yarn-node-cache@v1
+
+ - name: Install dependencies
+ run: yarn install
+
+ - name: Install dependencies
+ run: yarn build
+ env:
+ REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
+ REACT_APP_SHA: ${{ github.sha }}
+ REACT_APP_BRANCH: main
+ REACT_APP_OAUTH2_CLIENT_ID: ${{ secrets.CLIENT_ID }}
+
+ - name: Create Sentry release
+ uses: getsentry/[email protected]
+ env:
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+ SENTRY_ORG: python-discord
+ SENTRY_PROJECT: forms-frontend
+ with:
+ environment: production
+ sourcemaps: ./build/static/js/