mirror of
https://github.com/awatertrevi/xamarin-neo4j.git
synced 2026-09-22 09:05:29 +00:00
2.3 KiB
2.3 KiB
GitHub Actions Workflows
This directory contains automated workflows for the PocketGraph project.
Workflows
🚀 Deploy GitHub Pages (deploy-pages.yml)
Purpose: Automatically deploys the static website to GitHub Pages
Triggers:
- Push to
mainbranch (when files in/docschange) - Manual trigger via Actions tab
What it does:
- Checks out the repository
- Configures GitHub Pages
- Uploads the
/docsfolder as an artifact - Deploys to GitHub Pages
Permissions Required:
contents: readpages: writeid-token: write
Environment: Deploys to github-pages environment
✅ Validate Website (validate-site.yml)
Purpose: Validates HTML and checks for broken links
Triggers:
- Pull requests that modify files in
/docs - Push to
mainbranch (when files in/docschange)
What it does:
- Validates HTML5 compliance
- Checks all links for broken URLs
- Reports errors if validation fails
Setup Instructions
First Time Setup
-
Enable GitHub Pages with Actions:
- Go to repository Settings → Pages
- Under "Source", select GitHub Actions
- Save
-
Verify Workflows:
- Go to the Actions tab
- You should see the workflows listed
- They will run automatically on the next push to
main
Manual Deployment
You can manually trigger a deployment:
- Go to Actions tab
- Select "Deploy GitHub Pages" workflow
- Click "Run workflow"
- Select branch (usually
main) - Click "Run workflow"
Monitoring
- Status Badges: The main README includes a status badge showing deployment status
- Action Logs: Click on any workflow run in the Actions tab to see detailed logs
- Deployment URL: After successful deployment, the site is available at
https://kl0070.github.io/xamarin-neo4j/
Troubleshooting
Deployment fails with permission error:
- Ensure GitHub Pages is enabled in repository settings
- Check that Actions have the required permissions
Validation fails:
- Check the validation logs for specific HTML errors
- Fix broken links identified by the link checker
Site not updating:
- Check the Actions tab for failed deployments
- Ensure changes were pushed to the
mainbranch - Clear browser cache and wait a few minutes for GitHub's CDN to update