بنقرة واحدة
ci-setup
Set up CI/CD integration for automated DeployGate uploads and PR-based distribution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Set up CI/CD integration for automated DeployGate uploads and PR-based distribution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Start DeployGate onboarding — set up app distribution from first upload to team-wide deployment
Build the current project and upload the app binary to DeployGate
Add the DeployGate SDK to your Android app for crash reporting and screen capture
| name | ci-setup |
| description | Set up CI/CD integration for automated DeployGate uploads and PR-based distribution |
| allowed-tools | mcp__deploygate__get_user_info Read Write Edit Glob Bash(which:*) Bash(ls:*) |
Guide users through setting up CI/CD integration for automated app uploads and PR-based distribution.
When the user wants to:
Load only what matches the detected CI provider and project type. Each file is substantial (full YAML templates) — do NOT preload.
references/github-actions-upload.md — GitHub Actions main-branch upload workflow template (full YAML with Android + iOS examples). Read when generating the main-branch workflowreferences/github-actions-pr.md — GitHub Actions PR distribution workflow template (full YAML with comment / deployment / cleanup logic). Read when generating the PR workflowreferences/ios-code-signing.md — iOS code signing setup for CI (fastlane match vs manual .p12 + ASC API key). Read when the project is iOSreferences/bitrise.md — Bitrise DeployGate upload step. Read for Bitrisereferences/external-ci.md — CircleCI / Codemagic / curl-based integration. Read for anything other than GitHub Actions or Bitrisereferences/troubleshooting.md — troubleshooting table. Read on errorCheck the project for existing CI configuration:
.github/workflows/ → GitHub Actions (native integration available)bitrise.yml → Bitrise (official DeployGate step available).circleci/config.yml → CircleCI (curl-based upload)codemagic.yaml → Codemagic (curl-based upload)Also detect the project type:
build.gradle / build.gradle.kts → Android (runs on ubuntu-latest)*.xcodeproj / *.xcworkspace → iOS (requires macos-latest runner)For CI, recommend using the project API key instead of a personal API key. Project API keys are not tied to a specific user, so CI won't break when team members leave or change roles.
The project API key can be found at:
https://deploygate.com/organizations/{PROJECT_NAME}/settings/api_key
Replace {PROJECT_NAME} with the project name obtained from get_user_info.
Add repository secrets (Settings → Secrets and variables → Actions):
DEPLOYGATE_API_TOKEN: project API key (from the URL above)DEPLOYGATE_OWNER_NAME: DeployGate project nameFor iOS projects, also configure code signing — read references/ios-code-signing.md to decide between fastlane match (preferred if a Matchfile exists or fastlane is already set up) and manual certificate + App Store Connect API key.
Add environment variables in Bitrise (App Settings → Env Vars or Secrets):
DEPLOYGATE_API_TOKEN (project API key) and DEPLOYGATE_OWNER_NAMEAdd the same environment variables in the CI service's settings.
references/github-actions-upload.md and use the template inside. Customize the build step for Android/iOS and update file paths.references/github-actions-pr.md and use the template inside. The workflow creates a per-PR distribution page with a QR code comment, updates it on push, and deletes it on close.Android with gradle-deploygate-plugin (alternative): if the project uses gradle-deploygate-plugin, build + upload can be combined:
- name: Build and Upload
run: ./gradlew uploadDeployGateDebug
env:
DEPLOYGATE_API_TOKEN: ${{ secrets.DEPLOYGATE_API_TOKEN }}
Read references/bitrise.md.
Read references/external-ci.md.
Read references/troubleshooting.md.