ci: update sentry job

This commit is contained in:
AykutSarac 2023-05-31 12:40:12 +03:00
parent ee28174b2d
commit a1219c4a80
No known key found for this signature in database
2 changed files with 12 additions and 5 deletions

View File

@ -98,13 +98,13 @@ jobs:
VERSION=$(sentry-cli releases propose-version)
echo "::set-output name=version::${VERSION}"
- name: Upload sourcemaps to Sentry
run: sentry-cli releases files ${{ steps.create-release.outputs.stdout }} upload-sourcemaps --ext map --ext js --url-prefix '~/static' './out/_next/static/'
run: sentry-cli releases files "$VERSION" upload-sourcemaps --ext map --ext js --url-prefix '~/static' './out/_next/static/'
- name: Set commits for Sentry release
run: sentry-cli releases set-commits --auto ${{ steps.create-release.outputs.stdout }}
run: sentry-cli releases set-commits "$VERSION" --auto
- name: Deploy to Sentry
run: sentry-cli releases deploys ${{ steps.create-release.outputs.stdout }} new -e ${{ secrets.SENTRY_DEPLOY_ENVIRONMENT }}
run: sentry-cli releases deploys "$VERSION" new -e ${{ secrets.SENTRY_DEPLOY_ENVIRONMENT }}
- name: Finalize Sentry release
run: sentry-cli releases finalize ${{ steps.create-release.outputs.stdout }}
run: sentry-cli releases finalize "$VERSION"
# Deployment job

View File

@ -12,7 +12,13 @@ const config = {
};
module.exports = withSentryConfig(
config,
{
...config,
sentry: {
widenClientFileUpload: true,
disableServerWebpackPlugin: true,
},
},
{
silent: true,
org: "aykut-sarac",
@ -22,5 +28,6 @@ module.exports = withSentryConfig(
widenClientFileUpload: true,
hideSourceMaps: true,
disableLogger: true,
disableServerWebpackPlugin: true,
}
);