diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 46ceb9d08..3cb5a87e6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,22 +41,6 @@ jobs: secrets: GCS_SA_KEY: ${{ secrets.GCS_SA_KEY_PROD }} - prod-ekstern-sentry-release: - needs: prod-ekstern - name: Upload sourcemaps to sentry (ekstern) - runs-on: ubuntu-latest - steps: - - uses: getsentry/action-release@v1 - env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - SENTRY_ORG: nav - SENTRY_PROJECT: aktivitetsplan - SENTRY_URL: https://sentry.gc.nav.no/ - with: - environment: prod - version: ${{ github.sha }} - sourcemaps: './build' - prod-intern: name: Deploy application to prod intern needs: dev-intern diff --git a/.github/workflows/gcp-root.yml b/.github/workflows/gcp-root.yml index ed3a1572f..25d91f99c 100644 --- a/.github/workflows/gcp-root.yml +++ b/.github/workflows/gcp-root.yml @@ -50,3 +50,15 @@ jobs: tag_name: release/dev/${{inputs.releaseName}}@${{ github.sha }} release_name: ${{ inputs.releaseName }} prerelease: true + - name: Create sentry release + if: ${{ inputs.bucket }} == 'aktivitetsplan-prod' # Bare ekstern + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: nav + SENTRY_PROJECT: aktivitetsplan + SENTRY_URL: https://sentry.gc.nav.no/ + with: + environment: prod + version: ${{ github.sha }} + sourcemaps: './build'