diff options
author | 2020-10-08 23:39:22 +0100 | |
---|---|---|
committer | 2020-10-08 23:39:22 +0100 | |
commit | a60a0405cb258bb5092f621cbcdc4cf826f600a6 (patch) | |
tree | 27e1bf1bb4f8890bc62668b668cc8fcbe50bd59d | |
parent | Report release information to Sentry (diff) |
Create Sentry release on push
-rw-r--r-- | .github/workflows/create_sentry_release.yml | 34 |
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/ |