Deploy Application #5
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 Application | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1.7.0 | |
with: | |
audience: sts.amazonaws.com | |
role-to-assume: arn:aws:iam::891612573605:role/github-oidc | |
role-session-name: GitHub_to_AWS_via_FederatedOIDC | |
aws-region: us-east-2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '23' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build | |
# CI=false is used to prevent warnings from being errors | |
run: yarn build | |
- name: Deploy | |
run: bash ./scripts/deploy.sh |