Skip to content

Commit

Permalink
Sentry sourcemaps (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 authored Nov 17, 2024
1 parent af491fc commit 48b672d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.map
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,24 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

sentry-release:
needs: build-docker-image
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
sourcemaps: './dist'

deploy:
needs: build-docker-image
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config/
export default defineConfig({
build: {
sourcemap: true,
},
server: {
host: true,
port: 3000,
Expand Down

0 comments on commit 48b672d

Please sign in to comment.