|
35 | 35 | id: version
|
36 | 36 | run: |
|
37 | 37 | VERSION=${GITHUB_REF#refs/tags/v}
|
38 |
| - echo "VERSION=1" >> $GITHUB_ENV |
| 38 | + echo "VERSION=1.2" >> $GITHUB_ENV |
39 | 39 | echo "MAJOR=1" >> $GITHUB_ENV
|
40 |
| - echo "MINOR=1" >> $GITHUB_ENV |
| 40 | + echo "MINOR=2" >> $GITHUB_ENV |
41 | 41 |
|
42 | 42 | - name: Build and Push Docker Image with Multiple Tags and Architectures
|
43 | 43 | uses: docker/build-push-action@v4
|
@@ -66,28 +66,19 @@ jobs:
|
66 | 66 | # Associate the release with Sentry
|
67 | 67 | sentry-cli releases new "$RELEASE"
|
68 | 68 |
|
69 |
| - # Upload client sourcemaps |
70 |
| - sentry-cli releases files "$RELEASE" upload-sourcemaps /sourcemaps-client \ |
| 69 | + # Upload server sourcemaps |
| 70 | + sentry-cli releases files "$RELEASE" upload-sourcemaps /sourcemaps-server \ |
71 | 71 | --rewrite --url-prefix "~/assets" --validate
|
72 | 72 |
|
73 |
| - # Finalize the release |
74 |
| - sentry-cli releases finalize "$RELEASE" |
75 |
| -
|
76 | 73 | - name: Upload frontend sourcemaps to Sentry
|
77 | 74 | env:
|
78 | 75 | SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
79 | 76 | SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
80 | 77 | SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT_FRONTEND }}
|
81 | 78 | run: |
|
82 |
| - # Install Sentry CLI |
83 |
| - curl -sL https://sentry.io/get-cli/ | bash |
84 |
| -
|
85 | 79 | # Define the release version
|
86 | 80 | RELEASE="react-nestjs-boilerplate@${{ env.VERSION }}"
|
87 | 81 |
|
88 |
| - # Associate the release with Sentry |
89 |
| - sentry-cli releases new "$RELEASE" |
90 |
| -
|
91 | 82 | # Upload client sourcemaps
|
92 | 83 | sentry-cli releases files "$RELEASE" upload-sourcemaps /sourcemaps-client \
|
93 | 84 | --rewrite --url-prefix "~/assets" --validate
|
|
0 commit comments