Skip to content

mohammadranjbarz/github-ci-cd-aws-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD

The Github CI and deploy to AWS Guid

Setup Guilde

This is a sample code for a Medium article, First of all I recommend you to read that. CI/CD Using Github Actions And Amazon AWS S3

Set up a sample react app

For feeling real condition, I create a website with create-react-app to check CI/CD for a react application.

for starting the project

  • npm install
  • npm run build
  • npm start

CI/CD

You should add your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to settings of project ( in github panel) , secrets section then after every push your project should be build and deploy to aws s3

ps

All I added to project is ./aws-upload.js , and ./github/workflows/push.yml , and and ./aws-deploy.js So if you want activate github CI/CD (with amazon AWS s3 deployment) you should just add these three files to your project and

     "scripts": {
       "deploy-aws": "node aws-upload.js"
       }

to package.json scripts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published