From 940aaa0d1a53315efb464dbcbba6b78033dd4fde Mon Sep 17 00:00:00 2001 From: James Salter Date: Tue, 26 Oct 2021 16:05:55 +0100 Subject: [PATCH] Add workflow to upload sentry sourcemaps (#19480) On push to develop, run ci_package.sh setting SENTRY_ environment variables, which causes webpack to invoke the sentry plugin to upload sourcemaps --- .github/workflows/sentry-sourcemaps.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sentry-sourcemaps.yaml diff --git a/.github/workflows/sentry-sourcemaps.yaml b/.github/workflows/sentry-sourcemaps.yaml new file mode 100644 index 0000000000..0828d1d72c --- /dev/null +++ b/.github/workflows/sentry-sourcemaps.yaml @@ -0,0 +1,24 @@ +name: Upload Sentry Sourcemaps +on: + push: + branches: + - develop + +jobs: + runs-on: ubuntu-latest + environment: develop + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'yarn' + - run: ./scripts/fetch-develop.deps.sh --depth 1 + - run: yarn install + - run: ./scripts/ci_package.sh + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_ORG: sentry + SENTRY_PROJECT: riot-web