fix sentry job

This commit is contained in:
AykutSarac 2023-05-29 10:08:19 +03:00
parent d025866c83
commit 2f4b9b4604
No known key found for this signature in database

View File

@ -78,12 +78,17 @@ jobs:
with: with:
path: './out' path: './out'
- name: Sentry - name: Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_RELEASE: $(sentry-cli releases propose-version)
SENTRY_DEPLOY_ENVIRONMENT: "production"
run: | run: |
# Install Sentry CLI # Install Sentry CLI
curl -sL https://sentry.io/get-cli/ | bash curl -sL https://sentry.io/get-cli/ | bash
# Create new Sentry release # Create new Sentry release
export SENTRY_RELEASE=$(sentry-cli releases propose-version)
sentry-cli releases new -p $SENTRY_PROJECT $SENTRY_RELEASE sentry-cli releases new -p $SENTRY_PROJECT $SENTRY_RELEASE
sentry-cli releases set-commits --auto $SENTRY_RELEASE sentry-cli releases set-commits --auto $SENTRY_RELEASE
sentry-cli sourcemaps upload --release=$SENTRY_RELEASE /.out/_next/static/chunks sentry-cli sourcemaps upload --release=$SENTRY_RELEASE /.out/_next/static/chunks