Skip to content

Merge pull request #2393 from devtron-labs/fix/time-range-modal-main #33

Merge pull request #2393 from devtron-labs/fix/time-range-modal-main

Merge pull request #2393 from devtron-labs/fix/time-range-modal-main #33

name: Sentry source map upload
on:
push:
branches:
- 'main'
- 'hotfix-v**'
jobs:
upload-source-map:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build app
run: yarn build
- name: Set SENTRY_RELEASE_VERSION
id: vars
run: echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
with:
sourcemaps: './dist'
version: ${{ steps.vars.outputs.SENTRY_RELEASE_VERSION }}