๐ Shivam Gupta
July 30, 2026 ยท View on GitHub
๐ About
Hi, I'm Shivam Gupta โ a Full Stack Developer passionate about building fast, scalable, and modern web applications. This is the source code for my personal portfolio site.
๐ Live site: the-shivam-gupta.github.io
๐ Tech Stack
| Technology | Purpose |
|---|---|
| Next.js 14 | React framework with App Router |
| React 18 | UI library |
| Sass | SCSS styling |
| GitHub Pages | Static hosting |
| GitHub Actions | CI/CD deployment |
๐ฆ Running Locally
git clone https://github.com/the-shivam-gupta/the-shivam-gupta.github.io.git
cd the-shivam-gupta.github.io
npm install
npm run dev
Open http://localhost:3000 in your browser.
๐ฆ Build for Production
npm run build
Static files are output to the out/ directory, ready for deployment.
๐ Deploy to GitHub Pages
This repo is pre-configured to deploy to GitHub Pages automatically via GitHub Actions. Follow these steps to deploy your own Next.js site:
1. Configure Next.js for Static Export
In next.config.js, add:
const nextConfig = {
output: 'export',
images: { unoptimized: true },
};
output: 'export'generates static HTML files inout/instead of requiring a Node server.
images.unoptimizeddisables the Next.js image optimization API (not supported on static hosts).
2. Set Up GitHub Actions
Create .github/workflows/deploy.yml:
name: Deploy to GitHub Pages
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
3. Enable GitHub Pages in Repository Settings
- Go to your repo Settings โ Pages
- Under Source, select GitHub Actions
- Push any commit to
mainto trigger the workflow
The action will build the site and deploy it. You can monitor progress in the Actions tab.
4. Done ๐
Your site will be live at https://<username>.github.io/ (or https://<username>.github.io/<repo>/ for project sites).
๐ Project Structure
.
โโโ .github/workflows/deploy.yml # CI/CD pipeline
โโโ public/ # Static assets (images, fonts, PDFs)
โโโ src/
โ โโโ app/ # Next.js App Router pages
โ โ โโโ page.js # Home page
โ โ โโโ layout.js # Root layout
โ โ โโโ resume/page.js # Resume page
โ โโโ components/ # React components
โ โโโ lib/ # Utility libraries
โ โโโ scss/ # SCSS stylesheets
โโโ next.config.js # Next.js configuration
โโโ package.json
โโโ README.md
โญ If you found this useful, consider giving it a star!
Built with โค๏ธ by Shivam Gupta