Merge pull request #3602 from MTES-MCT/tra-14423 #1784
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow de déploiement | |
# Le front et le back ne sont pas inclut dans ce fichier car leur déploiement | |
# se fait automatiquement via l'intégration Scalingo <> Github | |
name: Deploy Sentry Release on recette | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
sentry-release-recette: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Run npm ci | |
run: npm ci | |
- name: Run build | |
run: npx nx run-many -t build | |
- name: Create a Sentry Release | |
uses: getsentry/[email protected] | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: betagouv | |
SENTRY_URL: https://sentry.incubateur.net/ | |
with: | |
environment: recette | |
sourcemaps: ./dist/apps/api ./dist/front/assets | |
projects: trackdechets-api trackdechets-front | |
ignore_missing: true |