Skip to content

Commit

Permalink
Build the frontend and deploy the build artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Apr 1, 2024
1 parent 6b1bda1 commit b5eb51c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup NPM
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: Install dependencies
run: cd frontend && npm install

- name: Build project
run: cd frontend && npm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -35,4 +46,4 @@ jobs:
aws-region: ${{inputs.aws_region}}

- name: Deploy Frontend
run: aws s3 sync frontend s3://${{inputs.bucket}}
run: aws s3 sync frontend/dist s3://${{inputs.bucket}}

0 comments on commit b5eb51c

Please sign in to comment.