Updated client-side end-points & other minor fixes #4
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: 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 |