This project is configured to automatically deploy to GitHub Pages using GitHub Actions.
The workflow in .github/workflows/deploy.yml handles the build and deployment process:
- When code is pushed to the
mainbranch, the workflow is triggered - The workflow builds the project using
npm run build - The built files from the
distdirectory are deployed to GitHub Pages
To enable GitHub Pages deployment for this repository:
- Go to your GitHub repository
- Navigate to Settings > Pages
- Under "Build and deployment" section:
- Select "GitHub Actions" as the source
- Make sure the repository has GitHub Pages enabled in the repository settings
If the deployment fails:
- Check the Actions tab in your GitHub repository to see the workflow logs
- Ensure your build process is working correctly locally (
npm run build) - Verify that the
distdirectory contains all necessary files for the website
You can also manually trigger a deployment:
- Go to the Actions tab in your GitHub repository
- Select the "Deploy to GitHub Pages" workflow
- Click "Run workflow"