From a60a0405cb258bb5092f621cbcdc4cf826f600a6 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 8 Oct 2020 23:39:22 +0100 Subject: Create Sentry release on push --- .github/workflows/create_sentry_release.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/create_sentry_release.yml 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/action-release@v1.0.0 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: python-discord + SENTRY_PROJECT: forms-frontend + with: + environment: production + sourcemaps: ./build/static/js/ -- cgit v1.2.3