Skip to content

Commit

Permalink
set empty string for sentry envrionment if not publish
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Jul 23, 2024
1 parent eebebd0 commit 9b415cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/reusable-publish-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ jobs:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: ${{ inputs.publish && 'production' }}
environment: ${{ inputs.publish && 'production' || '' }}
sourcemaps: packages/altair-app/dist/
version: ${{ inputs.publish && steps.getversion.outputs.version }}
version: ${{ inputs.publish && steps.getversion.outputs.version || '' }}
url_prefix: 'altair://-'
finalize: false
- name: Upload source maps to Sentry (electron)
Expand All @@ -157,9 +157,9 @@ jobs:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: ${{ inputs.publish && 'production' }}
environment: ${{ inputs.publish && 'production' || '' }}
sourcemaps: packages/altair-electron/dist/
version: ${{ inputs.publish && steps.getversion.outputs.version }}
version: ${{ inputs.publish && steps.getversion.outputs.version || '' }}
url_prefix: 'app:///dist'

- name: Upload electron builds
Expand Down

0 comments on commit 9b415cf

Please sign in to comment.