From aviz85-claude-skills-library
Deploys static or interactive HTML/CSS/JS frontend content to GitHub Pages using gh CLI. Automates repo creation, Pages enabling from main branch, homepage setup, and status checks.
npx claudepluginhub aviz85/claude-skills-libraryThis skill uses the workspace's default tool permissions.
Deploy static frontend websites to GitHub Pages using the GitHub CLI.
Deploys static or interactive HTML/CSS/JS frontend content to GitHub Pages using gh CLI, with repo creation, Pages enabling, and update workflows for public demos, prototypes, docs.
Creates and deploys single-page static websites to GitHub Pages via autonomous workflow: project init with HTML/CSS/JS, git setup, GitHub repo creation, and Actions deployment. For portfolios, CVs, landing pages.
Generates GitHub Pages repo with CI/CD workflow for deploying static HTML affiliate pages, bio links, or blogs. Includes custom domain and SSL setup instructions.
Share bugs, ideas, or general feedback.
Deploy static frontend websites to GitHub Pages using the GitHub CLI.
gh) installed and authenticatedgit init
git add .
git commit -m "Initial commit"
# Create public repo (required for free GitHub Pages)
gh repo create <repo-name> --public --source=. --push
# Enable GitHub Pages from main branch root
gh api repos/{owner}/{repo}/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/"}'
Or for docs folder:
gh api repos/{owner}/{repo}/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/docs"}'
# Get pages info
gh api repos/{owner}/{repo}/pages
# View deployment status
gh api repos/{owner}/{repo}/pages/builds/latest
Always do this — sets the live URL in the GitHub repo's About panel (top-right on the repo page):
OWNER=$(gh api user --jq '.login')
PAGES_URL=$(gh api repos/$OWNER/$REPO_NAME/pages --jq '.html_url')
gh api --method PATCH repos/$OWNER/$REPO_NAME --field homepage="$PAGES_URL" --jq '.homepage'
The site will be available at: https://<username>.github.io/<repo-name>/
Auto-deploy is active: every push to
maintriggers a rebuild. No GitHub Actions needed for legacy build.
For a complete deployment in one flow:
# Variables
REPO_NAME="my-site"
# Initialize and commit
git init
git add .
git commit -m "Initial commit"
# Create repo and push
gh repo create $REPO_NAME --public --source=. --push
# Enable pages
sleep 2
OWNER=$(gh api user --jq '.login')
gh api repos/$OWNER/$REPO_NAME/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/"}'
# Set homepage URL in repo About panel
PAGES_URL="https://$OWNER.github.io/$REPO_NAME/"
gh api --method PATCH repos/$OWNER/$REPO_NAME --field homepage="$PAGES_URL" --jq '.homepage'
echo "✓ Site live at: $PAGES_URL"
After making changes:
git add .
git commit -m "Update site"
git push
GitHub Pages will automatically rebuild.