Skip to content

Commit

Permalink
separate sentry releases
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Nov 16, 2023
1 parent d855dab commit 31b238b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,33 @@ jobs:
APPLEIDPASS: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
- name: Upload source maps to Sentry

- name: Upload source maps to Sentry (app)
if: startsWith(matrix.os, 'ubuntu')
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
# environment: staging
sourcemaps: packages/altair-electron/dist packages/altair-app/dist/
# version: ${{ github.ref }}
# environment: production
sourcemaps: packages/altair-app/dist/
# version: ${{ steps.getversion.outputs.version }}
url_prefix: 'altair://-'
finalize: false
- name: Upload source maps to Sentry (electron)
if: startsWith(matrix.os, 'ubuntu')
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
# environment: production
sourcemaps: packages/altair-electron/dist/
# version: ${{ steps.getversion.outputs.version }}
url_prefix: 'app:///dist'

- name: Upload electron builds
if: always()
uses: actions/upload-artifact@v2
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
with:
args: push altair-graphql.${{ steps.getversion.outputs.version }}.nupkg -s https://push.chocolatey.org/ -k="'${{ secrets.CHOCOLATEY_API_KEY }}'"

- name: Upload source maps to Sentry
- name: Upload source maps to Sentry (app)
if: startsWith(matrix.os, 'ubuntu')
uses: getsentry/action-release@v1
env:
Expand All @@ -109,8 +109,22 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: packages/altair-electron/dist/ packages/altair-app/dist/
sourcemaps: packages/altair-app/dist/
version: ${{ steps.getversion.outputs.version }}
url_prefix: 'altair://-'
finalize: false
- name: Upload source maps to Sentry (electron)
if: startsWith(matrix.os, 'ubuntu')
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: packages/altair-electron/dist/
version: ${{ steps.getversion.outputs.version }}
url_prefix: 'app:///dist'

npm-publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 31b238b

Please sign in to comment.