agentsclimarketplace

Ci cd github actions

Skill TakuroFukamizu/google-ai-studio-to-prod-skills/skills/ci-cd-github-actions

Use when setting up CI/CD pipelines with GitHub Actions for a Gemini or Google AI application, automating tests, builds, and deployments on push or PRFrom its SKILL.md

Install
npx -y skills add TakuroFukamizu/google-ai-studio-to-prod-skills --skill ci-cd-github-actions

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.8 KB, as published. Nobody here has run it

CI/CD with GitHub Actions

Overview

Set up GitHub Actions workflows for automated testing, building, and deploying Gemini API applications. Covers CI (lint + test on PR) and CD (deploy on merge to main).

When to Use

  • User says "CI/CD設定して", "add GitHub Actions", "automate deployment"
  • After initial deployment is working and user wants automation
  • User wants PR checks before merging

Quick Reference

Workflow Files

FileTriggerPurpose
.github/workflows/ci.ymlPR, push to mainLint + Test
.github/workflows/deploy.ymlPush to mainDeploy to Cloud Run / Vercel / Railway

CI Workflow Template

name: CI

on:
  pull_request:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-python@v5  # or setup-node@v4
        with:
          python-version: '3.12'

      - name: Install dependencies
        run: pip install -r requirements.txt -r requirements-dev.txt

      - name: Lint
        run: ruff check .

      - name: Test
        run: pytest tests/
        env:
          GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}

CD Workflow Template (Cloud Run)

name: Deploy

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write

    steps:
      - uses: actions/checkout@v4

      - uses: google-github-actions/auth@v2
        with:
          workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
          service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}

      - uses: google-github-actions/deploy-cloudrun@v2
        with:
          service: my-gemini-app
          region: asia-northeast1
          source: .

Implementation Steps

  1. Create .github/workflows/ directory
  2. Add CI workflow — Lint + test on every PR
  3. Add CD workflow — Deploy on merge to main
  4. Configure secrets — GEMINI_API_KEY, GCP credentials (Workload Identity Federation)
  5. Set up Workload Identity Federation — Keyless auth from GitHub to GCP
  6. Test with a PR — Verify CI runs, merge, verify deploy

Common Mistakes

  • Using service account keys — Use Workload Identity Federation instead (keyless, more secure)
  • No test job — Always run tests before deploying
  • Secrets in workflow file — Use GitHub Secrets, never hardcode
  • Missing permissions — WIF requires id-token: write permission
  • Running CI on every branch push — Scope to pull_request and push: branches: [main]

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.