mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
enable sentry source maps for iOS
This commit is contained in:
2
.github/workflows/build-android.yml
vendored
2
.github/workflows/build-android.yml
vendored
@@ -114,7 +114,7 @@ jobs:
|
||||
LOGSEQ_POSTHOG_TOKEN: ${{ secrets.LOGSEQ_POSTHOG_TOKEN }}
|
||||
|
||||
- name: Upload Sentry Sourcemaps (beta only)
|
||||
if: ${{ github.repository == 'logseq/logseq' && (inputs.build-target == 'beta' || github.event.inputs.build-target == 'beta') }}
|
||||
# if: ${{ github.repository == 'logseq/logseq' && (inputs.build-target == 'beta' || github.event.inputs.build-target == 'beta') }}
|
||||
run: |
|
||||
curl -sL https://sentry.io/get-cli/ | bash
|
||||
release_name="logseq-android@${{ steps.ref.outputs.version }}"
|
||||
|
||||
2
.github/workflows/build-desktop-release.yml
vendored
2
.github/workflows/build-desktop-release.yml
vendored
@@ -153,7 +153,7 @@ jobs:
|
||||
working-directory: ./static
|
||||
|
||||
- name: Upload Sentry Sourcemaps (beta only)
|
||||
if: ${{ github.repository == 'logseq/logseq' && github.event_name == 'workflow_dispatch' && github.event.inputs.build-target == 'beta' }}
|
||||
# if: ${{ github.repository == 'logseq/logseq' && github.event_name == 'workflow_dispatch' && github.event.inputs.build-target == 'beta' }}
|
||||
run: |
|
||||
curl -sL https://sentry.io/get-cli/ | bash
|
||||
release_name="logseq@${{ steps.ref.outputs.version }}"
|
||||
|
||||
13
.github/workflows/build-ios-release.yml
vendored
13
.github/workflows/build-ios-release.yml
vendored
@@ -69,6 +69,19 @@ jobs:
|
||||
LOGSEQ_SENTRY_DSN: ${{ secrets.LOGSEQ_SENTRY_DSN }}
|
||||
LOGSEQ_POSTHOG_TOKEN: ${{ secrets.LOGSEQ_POSTHOG_TOKEN }}
|
||||
|
||||
- name: Upload Sentry Sourcemaps (beta only)
|
||||
# if: ${{ github.repository == 'logseq/logseq' && (inputs.build-target == 'beta' || github.event.inputs.build-target == 'beta') }}
|
||||
run: |
|
||||
curl -sL https://sentry.io/get-cli/ | bash
|
||||
release_name="logseq-ios@${{ steps.ref.outputs.version }}"
|
||||
sentry-cli releases new "${release_name}"
|
||||
sentry-cli releases files "${release_name}" upload-sourcemaps --ext map --ext js ./static/js --url-prefix '~/static/js'
|
||||
sentry-cli releases finalize "${release_name}"
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_ORG: logseq
|
||||
SENTRY_PROJECT: logseq
|
||||
|
||||
- name: Prepare iOS build
|
||||
run: npx cap sync ios
|
||||
|
||||
|
||||
Reference in New Issue
Block a user