37.3.0 #112
Workflow file for this run
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
name: Deploy Production Build | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
COVERAGE: false | |
SENTRY_ORG: ilios | |
SENTRY_PROJECT: frontend | |
jobs: | |
deploy: | |
name: Deploy and Create Sentry Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.17 | |
cache: 'npm' | |
- name: install dependencies | |
run: npm ci | |
- name: Ember CLI Deploy | |
run: npm run deploy:production | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Install Sentry CLI | |
run: npm install -g @sentry/cli | |
- name: Create a Sentry.io release | |
run: | | |
# Create new Sentry release | |
export SENTRY_RELEASE=$(sentry-cli releases propose-version) | |
sentry-cli releases new $SENTRY_RELEASE | |
sentry-cli releases set-commits --auto $SENTRY_RELEASE | |
sentry-cli releases files $SENTRY_RELEASE upload-sourcemaps tmp/deploy-dist/ | |
sentry-cli releases finalize $SENTRY_RELEASE | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |