ytb-deploy: Cloud Run Deployment Automation for YouTube Creators

Deploying YouTube automation tools to Cloud Run just got dramatically simpler. The ytb-deploy skill pack eliminates the manual, error-prone steps of building, deploying, and configuring cloud infrastructure for YouTube creators and developers. This open-source toolkit handles the entire deployment workflow — from TypeScript compilation to secret management — with just a few commands.

Three Core Capabilities That Save Development Time

The ytb-deploy skill pack consists of three tightly integrated components that address the most common pain points in YouTube automation infrastructure:

Cloud Run Deployment Automation

Automate the complete Cloud Run deployment pipeline for your YouTube automation tools. The /deploy command handles everything: TypeScript compilation, Cloud Build submission, status tracking, and optional post-deployment testing. No more manually managing build configurations or waiting for builds to complete.

GCS Font Upload Management

Upload fonts to Google Cloud Storage with automatic verification. The /deploy:font-upload command uploads your local font directory to GCS, where Cloud Run instances automatically download them at startup. Supports multiple language fonts including Korean, Japanese, Chinese, and Hindi.

YouTube OAuth Token Management

Securely manage YouTube OAuth tokens in Google Cloud Secret Manager. The /deploy:youtube-token workflow compresses, base64-encodes, and uploads your YouTube credentials to Secret Manager, where they're automatically decrypted and loaded by your Cloud Run services.

How It Works: A Real-World Deployment Example

Imagine you've built a YouTube short video generator that needs to run continuously on Cloud Run. Here's how ytb-deploy streamlines the deployment process:

Step 1: Build and Deploy Your Application

/deploy

This single command compiles your TypeScript code, submits it to Cloud Build, tracks the build status, and deploys your application to Cloud Run. The entire process takes approximately 9 minutes, and you can optionally add test=true to automatically verify the deployment works correctly.

Step 2: Upload Required Fonts

/deploy:font-upload

Your application needs fonts to render videos with proper typography. This command uploads six essential fonts to GCS: BlackHanSans for titles, GmarketSans variants for subtitles, NotoSansCJK for East Asian languages, and NotoSansDevanagari for Hindi. Your Cloud Run instance will automatically download these fonts when it starts.

Step 3: Secure Your YouTube Credentials

/deploy:youtube-token

Your application needs YouTube API access. Instead of hardcoding credentials, this workflow securely stores your YouTube OAuth tokens in Secret Manager. It compresses your channel-specific JSON files, base64-encodes them, and uploads them to a secure secret named YOUTUBE_DATA. Your Cloud Run service automatically decrypts and loads these credentials at runtime.

Why This Approach Is Better Than Manual Deployment

Before ytb-deploy, YouTube creators faced several challenges:

ytb-deploy solves all these problems with automated, repeatable workflows that ensure consistency across deployments while maintaining security best practices.

Getting Started in Minutes

Installing and using ytb-deploy is straightforward:

  1. Add the ClickAround marketplace plugin:
    /plugin marketplace add https://github.com/clickaround/marketplace
  2. Install ytb-deploy:
    /plugin install ytb-deploy@clickaround
  3. Configure your GCP project and authentication
  4. Run the appropriate deployment command for your needs

The skill pack includes comprehensive documentation in each SKILL.md file, covering installation, usage examples, and troubleshooting tips for each component.