Skip to content

Commit

Permalink
feat: Fix deployment sentry source map upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryskoda committed Jan 28, 2025
1 parent 67f09d9 commit 4d0b42d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,6 @@ jobs:
- name: Upload Sourcemaps to Sentry
run: |
# First set the token
# Seems to be the only way to get the token
export SENTRY_AUTH_TOKEN=$(eas env:get --variable-name=SENTRY_AUTH_TOKEN --variable-environment=preview | tr -d ' ' | cut -d'=' -f2)
# Debug: Print full token and its length
echo "Full token: $SENTRY_AUTH_TOKEN"
echo "Token length: ${#SENTRY_AUTH_TOKEN}"
# Run the actual Sentry command
npx sentry-expo-upload-sourcemaps dist
env:
SENTRY_LOG_LEVEL: debug
7 changes: 4 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,10 @@ jobs:
run: eas update --auto --channel=production --message "${{ needs.check-deployment-type.outputs.commit_message }}" --non-interactive

- name: Upload source maps
env:
SENTRY_AUTH_TOKEN: $(eas env:get --variable-name=SENTRY_AUTH_TOKEN --variable-environment=production | cut -d'=' -f2)
run: npx sentry-expo-upload-sourcemaps dist
run: |
# Seems to be the only way to get the token
export SENTRY_AUTH_TOKEN=$(eas env:get --variable-name=SENTRY_AUTH_TOKEN --variable-environment=production | tr -d ' ' | cut -d'=' -f2)
npx sentry-expo-upload-sourcemaps dist
finalize-deployment:
needs: [check-deployment-type, ios-build, android-build, ota-update]
Expand Down
2 changes: 0 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,3 @@ const useStyles = () => {
[]
);
};

const test = 1;

0 comments on commit 4d0b42d

Please sign in to comment.