This portfolio automatically deploys to GitHub Pages whenever you push to the main branch.
Your portfolio is configured with GitHub Actions for automatic deployment. Simply push your changes and the site updates automatically!
- Make changes to your portfolio
- Commit your changes:
git add . git commit -m "Update portfolio"
- Push to GitHub:
git push origin main
- GitHub Actions automatically builds and deploys your site to: https://slamasamar4.github.io/Portfolio/
npm installnpm startThe site will open at http://localhost:3000
npm run buildIf you need to set this up for a new repository:
-
Enable GitHub Pages in your repository settings:
- Go to Settings → Pages
- Source: GitHub Actions
-
Ensure
package.jsonhas the correct homepage:"homepage": "https://<username>.github.io/<repository-name>/"
If you want to deploy manually using gh-pages:
npm run deployPortfolio/
├── src/ # React source files
├── public/ # Static files
├── .github/
│ └── workflows/
│ └── deploy.yml # CI/CD configuration
└── package.json
- ✅ Automatic deployment on push to main
- ✅ React 18
- ✅ GitHub Pages hosting
- ✅ Responsive design
- ✅ Modern portfolio layout
- Go to your repository on GitHub.
- Click on the Settings tab.
- Scroll down to the Pages section.
- Set the source to
mainand select the/ (root)folder. - Click Save to confirm.
After a few minutes, your site will be live at:
https://<your-username>.github.io/<repository-name>/
- Ensure your browser cache is cleared when checking for updates.
- If you make changes to the project, repeat Steps 2–4 to update the deployed site.
Let me know if you need further clarifications!