-
Create a new GitHub repository named
datapup.dev -
Initialize and push the code:
git init git add . git commit -m "Initial commit: DataPup landing page and blog" git branch -M main git remote add origin https://github.com/yourusername/datapup.dev.git git push -u origin main
-
Enable GitHub Pages:
- Go to your repository Settings
- Navigate to "Pages" in the sidebar
- Under "Build and deployment", select "GitHub Actions" as the source
- The workflow will automatically run on your next push
To use the custom domain datapup.dev:
-
Create a CNAME file:
echo "datapup.dev" > public/CNAME git add public/CNAME git commit -m "Add custom domain" git push
-
Configure DNS:
- Add an A record pointing to GitHub's IP addresses:
185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153 - OR add a CNAME record pointing to
yourusername.github.io
- Add an A record pointing to GitHub's IP addresses:
-
Enable HTTPS:
- In repository Settings > Pages
- Check "Enforce HTTPS"
The site automatically deploys when you push to the main branch:
# Make changes
git add .
git commit -m "Your commit message"
git pushGitHub Actions will:
- Build the Astro site
- Deploy to GitHub Pages
- The site will be available at:
https://yourusername.github.io/datapup.dev(default)https://datapup.dev(with custom domain)
To build locally and check the output:
npm run build
# Output will be in the dist/ directory- Check the Actions tab in GitHub for error logs
- Ensure all dependencies are in package.json
- Run
npm run buildlocally to test
- Ensure the base path is correct in
astro.config.mjs - Check that GitHub Pages is enabled
- Wait a few minutes for deployment to complete
- Verify DNS propagation (can take up to 48 hours)
- Check CNAME file exists in public/
- Ensure domain is verified in repository settings