# Deploy

> Deploy the blog to GitHub Pages. Use when user says "deploy", "部署", or wants to publish the blog. Use when this capability is needed.

- Skill: `tomevault-io/deploy-28` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/deploy-28`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/deploy-28/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/deploy-28

---


# Deploy Blog to GitHub Pages

## Pre-deploy Checks

在執行 deploy 之前，先檢查準備發布的文章：

1. 使用 `grep -l "draft: false" blog/content/post/*.md` 找出非草稿文章
2. 檢查這些文章的 `description` 是否為空
3. 如果 `description` 為空，詢問用戶是否要補上描述
4. 使用 `date "+%Y-%m-%dT%H:%M:%S+08:00"` 取得當前時間，更新發布時間（如果用戶要求）

## Steps

1. 執行 Pre-deploy Checks
2. 進入 blog 目錄
3. 執行 `make deploy`（會自動 build + commit + push）
4. 確認部署成功

## Commands

```bash
cd /home/davidleitw/Desktop/davidleitw.github.io/blog
make deploy
```

## After deployment

告訴用戶：
- 等待 1-2 分鐘
- 訪問 https://davidleitw.github.io 確認更新

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/davidleitw) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

