π Deployment Guide
Quick Deploy to GitHub Pages
Step 1: Prepare for Production
Edit _config.yml and uncomment the remote theme settings:
# Theme Settings
# theme: "minimal-mistakes-jekyll" # Comment out for GitHub Pages
remote_theme: "mmistakes/minimal-mistakes@4.27.0" # Uncomment for GitHub Pages
minimal_mistakes_skin: "default"
locale: "en-US"
# Plugins
plugins:
- jekyll-include-cache
- jekyll-remote-theme # Uncomment for GitHub Pages
- jekyll-sitemap
Step 2: Commit Your Changes
# Add all changes
git add .
# Commit with a meaningful message
git commit -m "Simplified portfolio with CI/CD pipeline"
# Push to main branch
git push origin main
Step 3: Enable GitHub Pages
- Go to your repository on GitHub
- Click Settings β Pages
- Under Source, select GitHub Actions
- The workflow will automatically deploy your site
Step 4: Verify Deployment
- Go to Actions tab in your repository
- Watch the βDeploy Jekyll site to GitHub Pagesβ workflow
- Once complete (green checkmark), your site is live!
- Visit:
https://arminmehran.com
π Development Workflow
Local Development
# Start local server
bundle exec jekyll serve --livereload
# View at http://localhost:4000
# Make changes and see them instantly
Deploy to Production
# Commit your changes
git add .
git commit -m "Your commit message"
# Push to trigger CI/CD
git push origin main
# GitHub Actions automatically deploys
π οΈ Troubleshooting
If GitHub Actions Fails
- Check the Actions tab for error messages
- Verify
_config.yml has remote_theme uncommented
- Ensure
jekyll-remote-theme plugin is enabled
- Check that all files are committed
If Site Doesnβt Update
- Clear browser cache (Cmd+Shift+R on Mac)
- Wait 2-3 minutes for GitHub Pages to update
- Check Actions tab to ensure deployment succeeded
If Local Server Wonβt Start
# Clean and rebuild
rm -rf .jekyll-cache _site
bundle install
bundle exec jekyll serve
π Pre-Deployment Checklist
π― Post-Deployment
After successful deployment:
- Verify Live Site: Visit https://arminmehran.com
- Test All Pages: Click through all navigation links
- Check Mobile: Test on mobile devices
- Monitor: Watch GitHub Actions for future deployments
- Update: Make changes locally, commit, and push to deploy
π GitHub Pages Settings
Recommended settings in your repository:
- Source: GitHub Actions
- Custom domain: arminmehran.com (already configured)
- Enforce HTTPS: β
Enabled
- Build and deployment: GitHub Actions
π CI/CD Pipeline
Your workflow (.github/workflows/jekyll.yml) automatically:
- Triggers on:
- Push to
main branch
- Pull requests to
main
- Manual workflow dispatch
- Build Process:
- Checks out code
- Sets up Ruby 3.1
- Installs dependencies
- Builds Jekyll site
- Uploads artifact
- Deploy Process:
- Deploys to GitHub Pages
- Updates live site
- Provides deployment URL
π Youβre Ready!
Your simplified portfolio is ready for production deployment with:
- β
Automated CI/CD pipeline
- β
Clean, maintainable codebase
- β
Professional workflow
- β
All content preserved
Just push to main and let GitHub Actions handle the rest! π