From b097f0f9e1464f4f5c0fd4bc85f9884e048e00bf Mon Sep 17 00:00:00 2001 From: nbkhope Date: Tue, 25 Jun 2024 22:11:24 -0400 Subject: [PATCH] Add run to deploy React app to production --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6822d92..9ba9f5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,3 +15,5 @@ jobs: - run: aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} --profile nbktechworld - run: mkdir -p dist && cp src/*.html dist && cp src/*.css dist && cp src/*.js dist - run: aws s3 cp dist/ s3://nbktechworld/bootcamp-2024-06-17 --endpoint-url=http://us-southeast-1.linodeobjects.com --profile nbktechworld --recursive --acl public-read + - run: cd web-client && npm install && npm run build && aws s3 cp build/ s3://nbktechworld/bootcamp-2024-06-17/web-client --endpoint-url=http://us-southeast-1.linodeobjects.com --profile nbktechworld --recursive --acl public-read +