Skip to content

Update config with AWS NODE_ENV #17

Update config with AWS NODE_ENV

Update config with AWS NODE_ENV #17

name: S3Workflow
on:
push:
branches:
- Feature-deploy-in-AWS
paths:
- "client/**"
defaults:
run:
working-directory: "client"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install Dependencies
run: npm install
- name: create build
run: npm run build
- name: AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{secrets.ACCESS_KEY}}
aws-secret-access-key: ${{secrets.SECRET_ACCESS_KEY}}
aws-region: eu-west-1
- name: Deploy static site to S3 bucket
run: aws s3 sync ./build s3://video-storage-app --delete