返回顶部
g

git-deployer

Push static site content to GitHub Pages repositories. Clone, copy files, commit with timestamp, force-push. Use when updating GitHub Pages sites, deploying static sites, or syncing local content to a git-based host.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
72
下载量
0
收藏
概述
安装方式
版本历史

git-deployer

# git-deployer Deploy static site content to GitHub Pages or any git-backed host. ## When to Use - **GitHub Pages updates** — You have a local build/output directory and want to push it to a `username.github.io` repo or a Pages branch (`gh-pages`, `main`) - **Static site deployment** — Hugo, Jekyll, Gatsby, Docusaurus, or any static site with a git-hosted output - **Automated CI replacement** — Instead of setting up GitHub Actions, you want a one-command deploy from your machine - **Syncing local → remote** — You edit content locally and need to push changes to a hosted git repository ## Workflow ``` Local Site Directory → /tmp/clone → File Copy → Commit → Force Push → Done ``` 1. **Clone or init** — If the remote repo exists, clone it to `/tmp/{reponame}`. Otherwise initialize a fresh clone 2. **Copy files** — Sync your local site directory contents into the clone (clean copy, not append) 3. **Commit** — Stage all files, commit with auto-generated timestamp message 4. **Force push** — Push to remote with force flag to overwrite remote state 5. **Report** — Output success/failure with commit hash and push result ## Usage ### Via skill invocation (from agent) Provide the following arguments: - `site_path` — Absolute path to the local site directory (the content to deploy) - `remote_url` — Full git URL (e.g., `https://github.com/user/repo.git` or `git@github.com:user/repo.git`) - `branch` — Branch to deploy to (default: `main`) ### Via script directly ```bash ./scripts/deploy.sh /path/to/site git@github.com:user/repo.git [branch] ``` ## Output - **Success** — Shows commit hash, remote URL, branch, and push status - **Failure** — Shows error message with exit code and which step failed ## Requirements - `git` must be installed and configured with credentials for the remote - SSH key or HTTPS token auth must be set up for the remote repository - Site path must exist and contain files ## Notes - Uses `--force` push — this will overwrite remote state. Use with caution on shared branches - Clone happens in `/tmp` and is not cleaned up automatically (intentional: allows inspection) - Commit message format: `Deploy: YYYY-MM-DD HH:MM:SS UTC`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-deployer-1776019438 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-deployer-1776019438 技能

通过命令行安装

skillhub install git-deployer-1776019438

下载 Zip 包

⬇ 下载 git-deployer v1.0.0

文件大小: 2.82 KB | 发布时间: 2026-4-13 10:26

v1.0.0 最新 2026-4-13 10:26
Initial release of git-deployer.

- Deploy static site content to any GitHub Pages or git-backed host via command or script.
- Clones or initializes the remote repository to `/tmp`, force-pushes clean local output.
- Commits with timestamped message and reports commit hash and push status.
- Supports targeting any branch; configurable via arguments.
- Requires git and configured credentials; uses force push (overwrites remote).
- Designed for automated, one-command site deployments or syncing local changes.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部