sentry-production.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: New Sentry production release
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. sentry:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Setup Node.js 14.x
  12. uses: actions/setup-node@v2
  13. with:
  14. node-version: 14.x
  15. - name: Install and build
  16. run: |
  17. yarn --frozen-lockfile
  18. yarn build:app
  19. env:
  20. CI: true
  21. - name: Install Sentry
  22. run: |
  23. curl -sL https://sentry.io/get-cli/ | bash
  24. - name: Create new Sentry release
  25. run: |
  26. export SENTRY_RELEASE=$(sentry-cli releases propose-version)
  27. sentry-cli releases new $SENTRY_RELEASE --project $SENTRY_PROJECT
  28. sentry-cli releases set-commits --auto $SENTRY_RELEASE
  29. sentry-cli releases files $SENTRY_RELEASE upload-sourcemaps --no-rewrite ./build/static/js/ --url-prefix "~/static/js"
  30. sentry-cli releases finalize $SENTRY_RELEASE
  31. sentry-cli releases deploys $SENTRY_RELEASE new -e production
  32. env:
  33. SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
  34. SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
  35. SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}