Skip to content

Merge pull request #4 from djlawren/models #14

Merge pull request #4 from djlawren/models

Merge pull request #4 from djlawren/models #14

name: Deploy frontend to S3
on:
push:
branches:
- main
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci --force
- name: Rebuild the dist/ directory
working-directory: ./frontend
env:
CI: false
run: npm run build
- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: 'frontend/build'
destination_dir: ''