Skip to content

chore(ci): add sentry sourcemaps #44

chore(ci): add sentry sourcemaps

chore(ci): add sentry sourcemaps #44

Workflow file for this run

name: 🌍 Deploy demo
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
cancel-in-progress: true
group: deploy-${{ github.ref }}
jobs:
build:
name: Deployment demo on gh-pages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: Install dependencies
run: |
yarn --immutable
- name: Build
env:
NODE_ENV: production # JS build mode
PRODUCTION: true # for environment (ex: robots.txt)
run: |
yarn build
touch out/.nojekyll
- name: Create a Sentry Release
uses: getsentry/action-release@v1.1.6
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: betagouv
SENTRY_URL: https://sentry.incubateur.net/
with:
environment: production
sourcemaps: 'dist/**/*.map'
projects: template-nextjs
version: '${{ github.sha }}'
ignore_missing: true
# deploy build to gh-pages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.9
with:
branch: gh-pages
folder: out