|
| 1 | +# GitHub Pages Setup Instructions |
| 2 | + |
| 3 | +This document explains how to enable GitHub Pages for this repository. |
| 4 | + |
| 5 | +## Automatic Deployment |
| 6 | + |
| 7 | +The repository is configured to automatically deploy to GitHub Pages using GitHub Actions. The workflow is defined in `.github/workflows/deploy-pages.yml`. |
| 8 | + |
| 9 | +## Enabling GitHub Pages |
| 10 | + |
| 11 | +To enable GitHub Pages for this repository, a repository administrator needs to: |
| 12 | + |
| 13 | +1. Go to the repository **Settings** page |
| 14 | +2. Navigate to **Pages** in the left sidebar |
| 15 | +3. Under **Build and deployment**: |
| 16 | + - **Source**: Select "GitHub Actions" |
| 17 | +4. Save the changes |
| 18 | + |
| 19 | +## After Enabling |
| 20 | + |
| 21 | +Once GitHub Pages is enabled: |
| 22 | + |
| 23 | +1. The workflow will automatically run when changes are pushed to `main` or `master` branch |
| 24 | +2. You can also manually trigger the workflow from the **Actions** tab |
| 25 | +3. The site will be available at: `https://jquery-validation.github.io/validation-content/` |
| 26 | + - Or at your custom domain if configured |
| 27 | + |
| 28 | +## Testing the Deployment |
| 29 | + |
| 30 | +After enabling GitHub Pages and pushing changes: |
| 31 | + |
| 32 | +1. Go to the **Actions** tab in the repository |
| 33 | +2. You should see the "Deploy to GitHub Pages" workflow running |
| 34 | +3. Once complete, visit the deployed site URL |
| 35 | +4. Verify that the content displays correctly |
| 36 | + |
| 37 | +## Troubleshooting |
| 38 | + |
| 39 | +If the deployment fails: |
| 40 | + |
| 41 | +1. Check the workflow logs in the **Actions** tab |
| 42 | +2. Verify that GitHub Pages is enabled with "GitHub Actions" as the source |
| 43 | +3. Ensure the branch being deployed (main or master) exists and has the latest changes |
| 44 | +4. Check that all required files are present: `_config.yml`, `_layouts/default.html`, and content files |
| 45 | + |
| 46 | +## Custom Domain (Optional) |
| 47 | + |
| 48 | +To use a custom domain: |
| 49 | + |
| 50 | +1. Add a `CNAME` file to the repository root with your domain name |
| 51 | +2. Configure your DNS settings to point to GitHub Pages |
| 52 | +3. Enable HTTPS in the Pages settings (recommended) |
| 53 | + |
| 54 | +For more information, see: https://docs.github.com/en/pages |
0 commit comments