deploy-backend
Deploy a backend branch via GitHub Actions. Use when user says "deploy", "lanza el pipeline", "despliega", or "/deploy". Accepts optional branch and operation arguments.
SKILL.mdskills/deploy-backend/SKILL.md
GitHubDeploy Backend Skill
Triggers the "Disparar Backend Pipeline en .private" GitHub Actions workflow for the current repository.
Usage
/deploy-backend → deploy current branch
/deploy-backend feature/foo → deploy specific branch
/deploy-backend compile → compilation only (no deploy)
Instructions
When invoked, follow these steps:
Determine the repository — Run
basename $(git remote get-url origin) .gitto get the repo name, and extract the org from the remote URL.Determine the branch — If the user provided a branch argument, use it. Otherwise run
git branch --show-currentand use the current branch.Determine the operation — If the user said "compile" or "compilation", use
compilation (no deploy). Otherwise default todeploy. Valid operations:compilation (no deploy)deployfeaturereleaseclose releaseclose release and deploy masterhotfixclose hotfix
Execute the workflow — Run:
gh workflow run "Disparar Backend Pipeline en .private" -R <org>/<repo> --ref master -f operations="<operation>" -f branch="<branch>"Confirm to the user — Show what was triggered: repo, operation, and branch.
Optionally check status — If the user asks, run:
gh run list -R <org>/<repo> --branch <branch> --limit 1