42.1.0 #136
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-frontend: | |
name: Deploy Frontend and Create Sentry Release | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- run: pnpm install | |
- name: Ember CLI Deploy | |
timeout-minutes: 30 | |
run: pnpm --filter frontend 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: pnpm install -g @sentry/cli | |
- name: Create a Sentry.io release | |
run: | | |
# Create new Sentry release | |
sentry-cli releases new ${{github.ref_name}} | |
sentry-cli releases set-commits --auto ${{github.ref_name}} | |
sentry-cli releases files ${{github.ref_name}} upload-sourcemaps packages/frontend/tmp/deploy-dist/ | |
sentry-cli releases finalize ${{github.ref_name}} | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
- uses: act10ns/slack@v2 | |
if: failure() | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }} | |
with: | |
status: ${{ job.status }} | |
message: Frontend Production Deploy Failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }} | |
deploy-lti-dashboard: | |
name: Deploy LTI Dashboard | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- run: pnpm install | |
- name: Ember CLI Deploy | |
timeout-minutes: 30 | |
run: pnpm --filter lti-dashboard run deploy:production | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: act10ns/slack@v2 | |
if: failure() | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }} | |
with: | |
status: ${{ job.status }} | |
message: LTI Dashboard Production Deploy Failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }} |