Prerequisites
- A GitHub account (free)
- Your wedding website files ready to upload
Deployment Process
Create a GitHub Repository
- Log in to GitHub
- Click the + icon in the top right corner
- Select New repository
- Name your repository:
- For a personal site:
username.github.io(e.g.,anilnanki.github.io) - For a project site: Any name you prefer (e.g.,
wedding-website)
- For a personal site:
- Make sure the repository is Public
- Click Create repository
Using the format
username.github.io will make your site available at https://username.github.io/ directly. Other names will be at https://username.github.io/repo-name/.Enable GitHub Pages
- Go to your repository on GitHub
- Click on Settings tab
- Scroll down to the Pages section in the left sidebar
- Under Source, select the branch you want to deploy (usually
main) - Keep the folder as / (root)
- Click Save
GitHub Pages will automatically build and deploy your site. This usually takes 1-2 minutes.
Access Your Live Site
After deployment completes:
- Your site will be available at:
- Personal site format:
https://username.github.io/ - Project site format:
https://username.github.io/repo-name/
- Personal site format:
- GitHub will show a green checkmark and the URL in the Pages settings
- Click the URL to view your live wedding website
Example Repository
This template is based on the repository: anilnanki/anilnanki.github.io You can view it live and use it as a reference for your own deployment.Updating Your Site
After the initial deployment, updating your site is simple:Troubleshooting
Site not loading after deployment
Site not loading after deployment
- Wait 2-5 minutes for the initial deployment to complete
- Check that GitHub Pages is enabled in Settings > Pages
- Verify that your repository contains an
index.htmlfile in the root - Check the Actions tab for any build errors
CSS/Images not loading
CSS/Images not loading
- Ensure all file paths use relative paths (e.g.,
./assets/css/style.css) - Check that files are uploaded with correct capitalization
- Verify folder structure matches your HTML references
- For project sites, you may need to adjust paths to include
/repo-name/
Changes not appearing
Changes not appearing
- Clear your browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- Wait a few minutes for GitHub Pages to rebuild
- Check the Actions tab to see if the deployment succeeded
- Verify your changes were pushed to the correct branch
404 Error on pages
404 Error on pages
- Ensure all HTML files are in the correct directories
- Check that links in your navigation use correct paths
- Verify file names match exactly (case-sensitive)
Next Steps
Custom Domain
Set up a custom domain name for your wedding website
Testing
Test your website before sharing with guests
