A simple static website for Moby IT - George Spanos.
index.html- Main pagestyles.css- Stylesheetpublic/- Static assets (fonts, images)
This site is configured to deploy automatically to GitHub Pages when you push to the main branch.
-
Navigate to Repository Settings
- Go to your repository on GitHub
- Click on Settings tab (if you don't see it, click the dropdown menu)
- You need admin or maintainer permissions to configure GitHub Pages
-
Access GitHub Pages Settings
- In the left sidebar, scroll down to find Pages under "Code and automation"
- Click on Pages
-
Change Source to GitHub Actions
- Under "Build and deployment"
- Find the "Source" dropdown
- Select GitHub Actions (instead of "Deploy from a branch")
- The workflow is already configured in
.github/workflows/deploy.yml
-
Deploy Your Site
- Commit and push your changes to the
mainbranch - GitHub will automatically run the workflow
- Check the Actions tab to monitor the deployment progress
- Commit and push your changes to the
-
Access Your Site
- Your site will be available at:
https://[your-username].github.io/moby-website/ - First deployment may take a few minutes
- The URL will be shown in the Pages settings after successful deployment
- Your site will be available at:
- If the source dropdown is grayed out, try switching to "Deploy from a branch" first, then back to "GitHub Actions"
- Check the Actions tab for any deployment errors
- Ensure you have the correct permissions (admin or maintainer)
Yes, GitHub Pages supports multi-page sites! You can:
- Add more HTML files (e.g.,
about.html,contact.html) - Organize pages in folders (e.g.,
blog/post1.html) - Link between pages using relative paths
- All files will be accessible at their paths (e.g.,
yoursite.com/about.htmloryoursite.com/blog/post1.html)
To use a custom domain:
- Add a
CNAMEfile with your domain (e.g.,moby-it.com) - Configure your domain's DNS settings to point to GitHub Pages
- Enable HTTPS in the repository settings
To preview the site locally, you can use any static server:
# Python 3
python3 -m http.server 8000
# Node.js
npx serve
# Or simply open index.html in your browser