Skip to content

Merge pull request #1235 from lpsinger/schema-stable-refactor #1037

Merge pull request #1235 from lpsinger/schema-stable-refactor

Merge pull request #1235 from lpsinger/schema-stable-refactor #1037

Workflow file for this run

name: Deploy to AWS
on:
push:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
deploy:
strategy:
fail-fast: false
matrix:
include:
- env: dev
url: https://dev.gcn.nasa.gov
- env: test
url: https://test.gcn.nasa.gov
- env: prod
url: https://gcn.nasa.gov
environment:
name: ${{ matrix.env }}
url: ${{ matrix.url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: NPM Install
run: npm ci
- name: Build
run: npm run build
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
aws-region: us-east-1
- name: Deploy
run: npm run deploy