From 2f2f2b5ebade63fa693706d3d09896a43c8f80f0 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 10 Jan 2024 10:48:19 +0100 Subject: [PATCH] Revert "Revert "remove sentry api key from source code"" This reverts commit 72e6df813fbcf0d3dbc751102fb77226f2b98bbd. --- .github/workflows/publish.yaml | 4 ++++ gitbutler-ui/vite.config.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 59a2ffdcf..e6a6a4546 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -35,6 +35,10 @@ jobs: - ubuntu-20.04 # [linux, x64] runs-on: ${{ matrix.platform }} + + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + steps: - uses: actions/checkout@v4 with: diff --git a/gitbutler-ui/vite.config.ts b/gitbutler-ui/vite.config.ts index c36fdef7b..ff01a0d1e 100644 --- a/gitbutler-ui/vite.config.ts +++ b/gitbutler-ui/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ org: 'gitbutler', project: 'app-js', // this is nikita galaiko's personal sentry api token. - authToken: '04c6bc1df15346f39ed2fbeb99c0a8e25bcbedc4aba9461bb3a471733b8c80db', + authToken: process.env.SENTRY_AUTH_TOKEN, include: ['build'], cleanArtifacts: true, setCommits: {