web-deploy-github
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.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- 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.
02 资源文件 14
- 参考文档_meta.json301 B
- 资产文件assets/templates/base-html/index.html414 B
- 脚本assets/templates/base-html/script.js28 B
- 资产文件assets/templates/base-html/styles.css373 B
- 资产文件assets/templates/landing/index.html7.8 KB
- 脚本assets/templates/landing/script.js1.8 KB
- 资产文件assets/templates/landing/styles.css6.7 KB
- 资产文件assets/templates/portfolio/index.html5.9 KB
- 脚本assets/templates/portfolio/script.js1.5 KB
- 资产文件assets/templates/portfolio/styles.css5.6 KB
- 参考文档references/design-patterns.md8.8 KB
- 参考文档references/workflow.md4.4 KB
- 脚本scripts/deploy_github_pages.sh1.8 KB
- 脚本scripts/init_project.sh2.6 KB
03 SKILL.md 正文
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 <project-name>
This creates:
project-name/
├── index.html
├── styles.css
├── script.js
├── README.md
└── .github/
└── workflows/
└── deploy.yml
2. Development
Build the website following these principles:
- Single-page first: Optimize for one-page layouts unless multiple pages explicitly required
- Autonomous generation: Generate complete, production-ready code without placeholders
- Modern design: Use modern CSS (flexbox, grid), responsive design, clean aesthetics
- No dependencies: Pure HTML/CSS/JS when possible, CDN links if frameworks needed
Use templates from assets/templates/ as starting points:
base-html/- Minimal HTML5 boilerplateportfolio/- Portfolio/CV template with sectionslanding/- Landing page with hero and CTA
3. GitHub Repository Setup
bash scripts/deploy_github_pages.sh <project-name> <github-username>
This script:
- Initializes git repository
- Creates GitHub repository via GitHub CLI
- Configures GitHub Pages settings
- Pushes initial commit
- Triggers first deployment
4. Deployment
GitHub Actions automatically deploys on push to main branch. The workflow:
- Checks out code
- Deploys to
gh-pagesbranch - Makes site live at
https://<username>.github.io/<project-name>/
Architecture Guidelines
HTML Structure
- Semantic HTML5 elements
- Meta tags for SEO and social sharing
- Responsive viewport configuration
- Favicon and icons
CSS Design
- Mobile-first responsive design
- CSS variables for theming
- Flexbox/Grid for layouts
- Smooth transitions and animations
- Dark mode support when appropriate
JavaScript
- Vanilla JS preferred
- Progressive enhancement
- Event delegation
- No console errors
Performance
- Optimized images
- Minified assets for production
- Lazy loading where appropriate
- Fast initial load time
Quick Examples
Example 1: Portfolio CV Site
User request: "Crée-moi un site portfolio CV"
Action:
- Run
init_project.sh portfolio-cv - Use
assets/templates/portfolio/as base - Generate complete HTML with sections: Hero, About, Skills, Projects, Contact
- Deploy with
deploy_github_pages.sh portfolio-cv username
Example 2: Landing Page
User request: "Fais-moi une landing page pour mon app"
Action:
- Run
init_project.sh app-landing - Use
assets/templates/landing/as base - Generate with Hero, Features, Pricing, CTA
- Deploy with
deploy_github_pages.sh app-landing username
Troubleshooting
GitHub Pages Not Deploying
- Check repository Settings → Pages → Source is set to
gh-pagesbranch - Verify GitHub Actions workflow ran successfully
- Check DNS propagation (can take 5-10 minutes)
Permission Errors
- Ensure
ghCLI is authenticated:gh auth status - Check repository permissions on GitHub
Build Failures
- Review Actions logs in repository
- Verify
.github/workflows/deploy.ymlsyntax - Check file paths and references
Resources
scripts/
init_project.sh- Initialize project structuredeploy_github_pages.sh- Deploy to GitHub Pages
references/
workflow.md- Detailed workflow documentationdesign-patterns.md- Design best practices
assets/
templates/base-html/- Minimal HTML5 boilerplatetemplates/portfolio/- Portfolio/CV templatetemplates/landing/- Landing page template.github/workflows/deploy.yml- GitHub Actions workflow template
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.