Web Deploy GitHub Pages
by @thomeksolutions
Create and deploy single-page static websites to GitHub Pages with autonomous workflow. Use when building portfolio sites, CV pages, landing pages, or any static web project that needs GitHub Pages deployment. Handles complete workflow from project initialization to live deployment with GitHub Actions automation.
clawhub install web-deploy-githubπ About This Skill
name: web-deploy-github description: Create and deploy single-page static websites to GitHub Pages with autonomous workflow. Use when building portfolio sites, CV pages, landing pages, or any static web project that needs GitHub Pages deployment. Handles complete workflow from project initialization to live deployment with GitHub Actions automation.
Web Deploy GitHub Pages
Overview
This skill enables autonomous creation and deployment of static websites to GitHub Pages. It follows a complete workflow from project structure initialization through automatic deployment via GitHub Actions, optimized for single-page applications, portfolios, and landing pages.
Core Workflow
1. Project Initialization
Create the project structure:
bash scripts/init_project.sh
This creates:
project-name/
βββ index.html
βββ styles.css
βββ script.js
βββ README.md
βββ .github/
βββ workflows/
βββ deploy.yml
2. Development
Build the website following these principles:
Use templates from assets/templates/ as starting points:
base-html/ - Minimal HTML5 boilerplateportfolio/ - Portfolio/CV template with sectionslanding/ - Landing page with hero and CTA3. GitHub Repository Setup
bash scripts/deploy_github_pages.sh
This script: 1. Initializes git repository 2. Creates GitHub repository via GitHub CLI 3. Configures GitHub Pages settings 4. Pushes initial commit 5. Triggers first deployment
4. Deployment
GitHub Actions automatically deploys on push to main branch. The workflow:
gh-pages branchhttps://.github.io// Architecture Guidelines
HTML Structure
CSS Design
JavaScript
Performance
Quick Examples
Example 1: Portfolio CV Site
User request: "CrΓ©e-moi un site portfolio CV"Action:
1. Run init_project.sh portfolio-cv
2. Use assets/templates/portfolio/ as base
3. Generate complete HTML with sections: Hero, About, Skills, Projects, Contact
4. Deploy with deploy_github_pages.sh portfolio-cv username
Example 2: Landing Page
User request: "Fais-moi une landing page pour mon app"Action:
1. Run init_project.sh app-landing
2. Use assets/templates/landing/ as base
3. Generate with Hero, Features, Pricing, CTA
4. Deploy with deploy_github_pages.sh app-landing username
Troubleshooting
GitHub Pages Not Deploying
gh-pages branchPermission Errors
gh CLI is authenticated: gh auth statusBuild Failures
.github/workflows/deploy.yml syntaxResources
scripts/
init_project.sh - Initialize project structuredeploy_github_pages.sh - Deploy to GitHub Pagesreferences/
workflow.md - Detailed workflow documentationdesign-patterns.md - Design best practicesassets/
templates/base-html/ - Minimal HTML5 boilerplatetemplates/portfolio/ - Portfolio/CV templatetemplates/landing/ - Landing page template.github/workflows/deploy.yml - GitHub Actions workflow templateπ Tips & Best Practices
GitHub Pages Not Deploying
gh-pages branchPermission Errors
gh CLI is authenticated: gh auth statusBuild Failures
.github/workflows/deploy.yml syntax