Live Demo: elarsaks.github.io/react-deployment-example/
Live example repository for the LinkedIn article:
Automate React App Deployment with GitHub Actions by Elar Saks.
- What does this repo demonstrate?
- How does it work?
- Features
- Getting Started
- GitHub Actions Workflow
- Related Resources
- Automated deployment of a React app to GitHub Pages using GitHub Actions.
- Example workflow file:
.github/workflows/deploy-react-app.yml
. - Minimal React app in
src/
.
- On every push to the
deploy-react-app
branch, the workflow:- Checks out the code
- Sets up Node.js
- Installs dependencies
- Builds the React app
- Deploys the
build/
folder to GitHub Pages usingpeaceiris/actions-gh-pages
- Zero-config React deployment to GitHub Pages
- Modern GitHub Actions workflow
- Easy to fork and adapt for your own projects
- LinkedIn article for step-by-step guidance
- Fork or clone this repository.
- Install dependencies:
npm install
- Build locally (optional):
npm run build
- Push changes to the
deploy-react-app
branch to trigger deployment.
See the workflow file at .github/workflows/deploy-react-app.yml
for details.
- React App Deployed by this repo
- LinkedIn Article: Automate React App Deployment with GitHub Actions
- GitHub Actions Documentation
- GitHub Pages Documentation
For a step-by-step guide and explanation, read the full article on LinkedIn: Automate React App Deployment with GitHub Actions