Skip to content

Commit

Permalink
chore(ci): Update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 23, 2025
1 parent a6ecc41 commit 70cb84b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ needs.release.outputs.environment }}
name: Deploy API
if: github.ref == 'refs/heads/develop'

steps:
- name: Checkout
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ needs.release.outputs.environment }}
name: Deploy Platform
if: github.ref == 'refs/heads/develop'

steps:
- name: Checkout
Expand Down Expand Up @@ -236,10 +238,10 @@ jobs:
ENVIRONMENT: ${{ needs.release.outputs.environment }}
run: |
RELEASE=`jq -r '.version' package.json`
sentry-cli releases -o $SENTRY_ORG new -p $SENTRY_PROJECT $VERSION
sentry-cli releases set-commits --auto $VERSION
sentry-cli releases deploys $VERSION new -e $ENVIRONMENT
sentry-cli releases files $VERSION upload-sourcemaps apps/platform/.next/static \
sentry-cli releases new $RELEASE
sentry-cli releases set-commits --auto $RELEASE
sentry-cli releases deploys $RELEASE new -e $ENVIRONMENT
sentry-cli releases files $RELEASE upload-sourcemaps apps/platform/.next/static \
--url-prefix '~/_next' \
--validate \
--rewrite
Expand All @@ -249,6 +251,7 @@ jobs:
environment: ${{ needs.release.outputs.environment }}
name: Deploy Web
needs: release
if: github.ref == 'refs/heads/develop'

steps:
- name: Checkout
Expand Down

0 comments on commit 70cb84b

Please sign in to comment.