Search⌘ K

Automating Deployment with GitHub Actions

Explore how to automate the deployment of a React application to AWS S3 using GitHub Actions. Learn to configure AWS credentials, run tests, build the project, and deploy using CI/CD workflows. This lesson guides you through writing a deployment workflow file, integrating backend and frontend deployments in one repository, and managing secure, reliable application deployment.

We'll cover the following...

Earlier we explored how GitHub Actions make the flow of deployment easier, more secure, and more reliable for developers. That is why, in this lesson, we are also using GitHub Actions to automate the deployment of the React application.

There is a GitHub action for AWS called configure-aws-credentials. We will use this action to configure AWS credentials in the workflow to execute a command to upload the content of the build folder in the S3 bucket created earlier. But before that, we will follow the same workflow of CI/CD:

  1. Install the dependencies of the project.

  2. Run tests to make sure ...