Skip to content

Commit 3e1a1a4

Browse files
authored
Merge pull request #2 from sureshkumarc46/add-workflow
Add workflow
2 parents fac5061 + 300c38d commit 3e1a1a4

File tree

6 files changed

+8906
-9088
lines changed

6 files changed

+8906
-9088
lines changed

.github/workflows/ci-cd.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: automate-react-s3
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v2
13+
14+
- name: setupnode
15+
uses: actions/setup-node@v2
16+
17+
18+
- run: yarn install
19+
- run: yarn build
20+
21+
- name: configure aws credentials
22+
uses: aws-actions/configure-aws-credentials@v1
23+
with:
24+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
25+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26+
aws-region: us-east-1
27+
28+
- name: deploy static site to s3 bucket
29+
run: aws s3 sync build/ s3://react-appp101

src/components/shared/snackbar-wrapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
SNACKBAR_TYPES,
77
SNACKBAR_POSITIONS,
88
SNACKBAR_EVENT_NAME
9-
} from 'constants/snackbar';
9+
} from 'constants/Snackbar';
1010

1111
import 'react-toastify/dist/ReactToastify.min.css';
1212

src/services/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios, { AxiosRequestConfig } from 'axios';
33
import { store } from 'store';
44
import { redirect } from 'utils/url';
55
import { sendLog } from 'services/log';
6-
import { SNACKBAR_TYPES } from 'constants/snackbar';
6+
import { SNACKBAR_TYPES } from 'constants/Snackbar';
77
import { REQUEST_TYPES } from 'constants/request-types';
88
import { userLogoutAction } from 'store/user/user-slice';
99
import { generateSnackbar } from 'utils/generate-snackbar';

src/styles/index.min.css

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/generate-snackbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SNACKBAR_EVENT_NAME } from 'constants/snackbar';
1+
import { SNACKBAR_EVENT_NAME } from 'constants/Snackbar';
22

33
export function generateSnackbar(options: SnackBarEvent) {
44
if (typeof CustomEvent === 'undefined') return;

0 commit comments

Comments
 (0)