Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh-Srivastav123 authored May 20, 2024
1 parent 99d43e1 commit ab2e223
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,46 @@
# - name: Build
# run: npm run build

# name: CI/CD

# on:
# push:
# branches:
# - main

# # defaults:
# # run:
# # working-directory: ./client

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2

# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '16'
# cache: 'npm'

# - name: Install dependencies
# run: npm install

# - name: Build
# run: npm run build

# - name: Deploy to S3
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: ap-south-1
# S3_BUCKET_NAME: deployment-react-123
# run: |
# aws s3 sync build/ s3://$S3_BUCKET_NAME --delete


name: CI/CD

on:
Expand Down Expand Up @@ -229,6 +269,6 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-south-1
S3_BUCKET_NAME: deployment-react-123
S3_BUCKET_NAME: react-deployment-125
run: |
aws s3 sync build/ s3://$S3_BUCKET_NAME --delete

0 comments on commit ab2e223

Please sign in to comment.