본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)260k · #580

publish-site

하는 일

이 스킬은 AI가 만든 정적 웹사이트나 빌드된 웹 앱을 소유한 호스트에 게시하고, 나중에 업데이트하거나 되돌리도록 돕습니다. 만든 페이지의 공유 링크를 원하는 사람을 위한 것입니다.

사용하는 경우

  • ✓웹사이트, 대시보드, 보고서를 온라인에 올리고 링크를 받고 싶을 때.
  • ✓이미 게시된 사이트를 새 내용으로 업데이트하고 싶을 때.
  • ✓나쁜 배포 후에 사이트를 이전 버전으로 되돌려야 할 때.

스킬 링크

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/publish-site/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/publish-site/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 대시보드를 온라인에 올리고, 팀과 공유할 수 있는 링크를 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 어느 호스트에 로그인되어 있는지 확인하고, 사이트를 로컬에서 미리 보고, 각 배포에 버전을 붙이고, 사용 가능한 첫 호스트로 배포합니다. 그다음 라이브 URL을 HTTP로 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Publish Site

Take a website, dashboard, or web app the user built (or you built for them) and put it online on infrastructure the user owns — GitHub Pages by default, Cloudflare Pages or Netlify when they need more. The discipline: preview locally for sign-off, version every deploy with a git tag, deploy through a provider ladder, verify the live URL with a real HTTP check, and keep rollback one command away.

This skill covers static sites and SPA build output (plain HTML/CSS/JS, or the dist//build/ folder from Vite/Next-export/Astro/etc.). It does not cover server-side runtimes — for throwaway serverless deploys with zero account setup, use the cloudflare-temporary-deploy optional skill instead.

When to Use

Load this skill when the user asks to:

  • Put a site online — "publish this", "host this somewhere", "give me a link I can share"
  • Deploy a dashboard, report, portfolio, docs site, or prototype you just generated
  • Update an already-published site with new content (redeploy = new version)
  • Roll back a bad deploy to the previous version
  • Pick a host — they don't care where, they just want a URL

Prerequisites

At least ONE authenticated provider CLI (check in this order):

  • GitHub Pages (default): gh auth status succeeds. Needs git too.
  • Cloudflare Pages: wrangler whoami succeeds (or CLOUDFLARE_API_TOKEN is set). Install: npm i -g wrangler or use npx wrangler@latest.
  • Netlify (fallback): netlify status succeeds. Install: npm i -g netlify-cli.

Plus:

  • A directory of static output to publish (site root or a dist//build/ folder). If the project needs a build step, run it first and publish the output directory, never the source.
  • For local preview sharing: cloudflared (optional — python3 -m http.server covers local-only preview).

How to Run

All commands below run via the terminal tool from the site's project directory. The pipeline is always the same five moves:

  1. Build → 2. Preview for sign-off → 3. Commit + tag (version-before-deploy) → 4. Deploy via the provider ladder → 5. Verify the live URL with curl and report it.

Quick Reference

Step Command
Local preview python3 -m http.server 8080 --directory dist
Shareable preview cloudflared tunnel --url http://localhost:8080
Version a deploy git add -A && git commit -m "deploy: <what>" && git tag deploy-YYYYMMDD-HHMM
GitHub Pages (branch mode) git subtree push --prefix dist origin gh-pages
Enable Pages on repo gh api repos/{owner}/{repo}/pages -X POST -f 'source[branch]=gh-pages' -f 'source[path]=/'
Cloudflare Pages npx wrangler@latest pages deploy dist --project-name <name>
Netlify netlify deploy --prod --dir dist
Rollback git checkout <previous-tag> -- . && redeploy (or provider dashboard)
Verify live curl -sS -o /dev/null -w '%{http_code}' <url> → expect 200

Procedure

1. Build and preview locally

Build if needed (npm run build, etc.) and identify the output directory. Serve it:

python3 -m http.server 8080 --directory dist

For a shareable preview link (user on another machine, or you want their sign-off before going live), open a quick tunnel in a background terminal session:

cloudflared tunnel --url http://localhost:8080

Give the user the https://*.trycloudflare.com URL and get sign-off before deploying. Kill the tunnel afterwards.

2. Version before deploy — no exceptions

Every deploy must come from a git commit, so every deploy is reproducible and rollback is trivial.

git init 2>/dev/null; git add -A
git commit -m "deploy: <short description>"
git tag "deploy-$(date +%Y%m%d-%H%M)"

If the project already has a repo, just commit + tag. Never deploy uncommitted files.

3. Deploy — provider ladder

Rung 1 — GitHub Pages (default: free, zero extra accounts if gh is authed):

gh repo create <name> --public --source . --push   # skip if repo exists
git subtree push --prefix dist origin gh-pages      # publish build output
gh api "repos/{owner}/<name>/pages" -X POST \
  -f 'source[branch]=gh-pages' -f 'source[path]=/'  # first time only

Site appears at https://<owner>.github.io/<name>/. If the site is the repo root (no build dir), push main and set Pages source to main instead of using subtree. For build-step projects that will redeploy often, prefer the official actions/deploy-pages workflow so p

자주 묻는 질문

어떤 호스트를 지원하나요?

스킬은 기본으로 GitHub Pages를 지원하며, Cloudflare Pages와 Netlify도 지원합니다.

서버 측 앱도 다루나요?

아니요. 스킬은 서버 측 런타임이 아니라 정적 사이트와 단일 페이지 앱 빌드를 다룹니다.

배포를 되돌릴 수 있나요?

네. 스킬에 따르면 각 배포에 태그가 붙어 있어 한 명령으로 롤백할 수 있습니다.

상세 정보

작성자의 원본 설명

Versioned site deploys to GitHub/Cloudflare/Netlify Pages.

repo: NousResearch/hermes-agent

인기도

GitHub 스타
260k
순위
#580
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬