# Deploy

> Deploy latest master to production with a version tag. Use when releasing to production or tagging a deploy.

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

---


## Context

- Current tags: !`git tag --sort=-v:refname 2>/dev/null | head -5`
- Remotes: !`git remote -v 2>/dev/null | head -10`

## Your task

Deploy the latest master to production by creating a version tag and pushing to the production branch. This works from any branch — no need to checkout master.

### Step 1: Run the deploy script

Resolve the script path — use the first that exists:
1. `~/.claude/skills/deploy/scripts/deploy.sh` (deployed via symlink)
2. `agents/skills/deploy/scripts/deploy.sh` (repo-relative, for development/workspaces)

```
bash <script-path>
```

Handle the exit code:

- **Exit 0** — Show the output block verbatim as your final response. Do not add commentary.
- **Exit 1** — Report the error from stderr.

