Skip to content

Updated client-side end-points & other minor fixes #4

Updated client-side end-points & other minor fixes

Updated client-side end-points & other minor fixes #4

name: Client build and deploy
on:
push:
branches:
- main
paths:
- "client/**"
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-22.04
defaults:
run:
working-directory: client
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build
- name: Deploy
run: |
cd build
aws s3 sync . s3://perntodo
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1