This repository is configured to automatically deploy to GitHub Pages using GitHub Actions.
To enable GitHub Pages deployment for this repository, follow these steps:
- Go to your repository on GitHub
- Navigate to Settings → Pages
- Under Source, select GitHub Actions
Once GitHub Pages is enabled, the site will automatically deploy when:
- Code is pushed to the
mainbranch - You manually trigger the workflow from the Actions tab
After the first successful deployment, your site will be available at one of these URLs depending on your setup:
For GitHub Pages (default):
https://levanijintcharadze.github.io/levanijintcharadze.dev/
For custom domain:
https://levanijintcharadze.dev
Note: The repository name suggests this site is intended for a custom domain. If deploying to a project page URL, you may need to update the
basepath invite.config.ts.
## How It Works
The deployment process uses a GitHub Actions workflow (`.github/workflows/deploy.yml`) that:
1. **Builds the project**: Runs `npm ci` and `npm run build` to create the production build
2. **Uploads artifacts**: Packages the `dist/` directory
3. **Deploys to GitHub Pages**: Automatically publishes the site
## Manual Deployment
To manually trigger a deployment:
1. Go to the **Actions** tab in your GitHub repository
2. Select the **Deploy to GitHub Pages** workflow
3. Click **Run workflow**
4. Select the `main` branch
5. Click **Run workflow**
## Build Configuration
The site is built using Vite with the following configuration:
- **Base path**: `/` (root) - suitable for custom domains or user/org pages
- **Build output**: `dist/` directory
- **Assets**: Fingerprinted for optimal caching
### Configuring Base Path
If deploying to a project page (e.g., `username.github.io/repo-name`), update the base path:
1. Set environment variable when building:
```bash
BASE_PATH=/repo-name/ npm run build
- Or modify
vite.config.ts:base: '/repo-name/',
- Check the Actions tab for error logs
- Ensure all dependencies are correctly listed in
package.json - Verify that the build completes successfully locally with
npm run build
- Verify GitHub Pages is enabled in repository settings
- Check that the source is set to GitHub Actions
- Wait a few minutes for DNS propagation
- Verify the
baseconfiguration invite.config.ts - Check browser console for 404 errors
- Ensure all asset paths are relative or absolute from root
To test the site locally:
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewTo use a custom domain:
- Add a
CNAMEfile to thepublic/directory with your domain - Configure DNS records with your domain provider
- Enable HTTPS in repository settings
For more information, see GitHub Pages documentation.