Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)260k · #580

publish-site

Ce qu’il fait

Ce skill aide votre IA à publier un site statique ou une application web compilée sur un hébergeur de votre choix, puis à le mettre à jour ou à revenir en arrière plus tard. Il s'adresse aux personnes qui veulent un lien à partager pour une page qu'elles ont créée.

Quand l’utiliser

  • ✓Quand vous voulez que votre IA mette un site, un tableau de bord ou un rapport en ligne et vous donne un lien.
  • ✓Quand vous voulez mettre à jour un site déjà publié avec un nouveau contenu.
  • ✓Quand vous voulez revenir à la version précédente d'un site après un mauvais déploiement.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/publish-site/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Publie ce tableau de bord en ligne et donne-moi un lien que je peux partager avec mon équipe.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill vérifie avec quel fournisseur vous êtes connecté, prévisualise le site en local, marque chaque déploiement d'une version, puis déploie sur le premier hébergeur disponible. Il vérifie ensuite l'adresse en ligne par HTTP.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Quels hébergeurs prend-il en charge ?

Le skill prend en charge GitHub Pages par défaut, ainsi que Cloudflare Pages et Netlify.

Gère-t-il les applications côté serveur ?

Non. Le skill couvre les sites statiques et les builds d'applications monopage, et non les environnements côté serveur.

Puis-je annuler un déploiement ?

Oui. Le skill indique que chaque déploiement est marqué d'une version, ce qui permet de revenir en arrière avec une seule commande.

Détails

Description originale de l’auteur

Versioned site deploys to GitHub/Cloudflare/Netlify Pages.

repo: NousResearch/hermes-agent

Popularité

Étoiles GitHub
260k
Position au classement
#580
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires