Github Actions

作者 callstackincubator61e6e7dfdf3aMIT1.6K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipelines or downloading GitHub Actions artifacts via gh CLI and GitHub API.

仅含说明DevOps & Cloud
AI 生成的概览

提供 GitHub Actions 工作流模式,用于在 CI 中构建 React Native 的 iOS 模拟器与 Android 模拟器产物。

功能
该技能提供可复用的 GitHub Actions 模式,用于在云端为 iOS 模拟器和 Android 模拟器构建 React Native 应用,并发布生成的产物。内容涵盖 iOS 的 .app.tar.gz 与 Android 的 .apk 复合操作、工作流串联,以及使用 actions/upload-artifact@v4 上传产物。它还说明如何通过 gh CLI 或 GitHub REST API 按 ID 或名称下载产物。
适用场景
适用于创建构建 React Native 模拟器或模拟器产物的 CI 工作流,或从拉取请求、手动触发运行中上传 iOS 模拟器与 Android 模拟器安装包。也适合用可下载且 ID 稳定的 CI 产物替代仅限本地的移动端构建。
运行要求
需要 GitHub Actions 作为 CI 环境、用于下载产物的 gh CLI 或 GitHub API 访问权限,以及访问 GitHub 的网络连接。该技能不包含脚本,仅为说明文档和参考 Markdown 文件。

GitHub Actions Build Artifacts

Overview

Reusable GitHub Actions patterns to build React Native apps for iOS simulators and Android emulators in the cloud, then publish artifacts retrievable via gh CLI or GitHub API.

When to Apply

Use this skill when:

  • Creating CI workflows that build React Native simulator/emulator artifacts.
  • Uploading iOS simulator and Android emulator installables from PRs or manual dispatch runs.
  • Replacing local-only mobile builds with downloadable CI artifacts.
  • Needing stable artifact IDs/names for scripted retrieval with gh or REST API.

Quick Reference

  1. Add composite actions from gha-ios-composite-action.md [blocked] and gha-android-composite-action.md [blocked].
  2. Wire them into .github/workflows/mobile-build.yml from gha-workflow-and-downloads.md [blocked].
  3. Upload with actions/upload-artifact@v4 and capture artifact-id output.
  4. Download with gh run download or GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}.

References

FileDescription
gha-ios-composite-action.md [blocked]Composite action.yml for iOS simulator .app.tar.gz builds and artifact upload
gha-android-composite-action.md [blocked]Composite action.yml for Android emulator .apk builds and artifact upload
gha-workflow-and-downloads.md [blocked]End-to-end workflow wiring plus gh and REST download commands

Problem -> Skill Mapping

ProblemStart With
Need CI iOS simulator .app.tar.gz artifactgha-ios-composite-action.md [blocked]
Need CI Android emulator .apk artifactgha-android-composite-action.md [blocked]
Need one workflow to trigger both platform jobsgha-workflow-and-downloads.md [blocked]
Need scripted artifact downloadgha-workflow-and-downloads.md [blocked]

Source Inspiration

来源与署名

来源:callstackincubator/agent-skills位于skills/github-actions提交61e6e7d

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架