360 Secure SkillHub
360 安全技能中心

github-actions

提供 GitHub Actions 可复用模式:用复合 action 在云端构建 React Native 的 iOS 模拟器与 Android 模拟器产物,通过 upload-artifact 上传,并可用 gh CLI 或 GitHub REST API 按 artifact 名称或 ID 下载,附带两个平台的复合 action 与端到端 workflow 参考文件。

分类:开发
callstackincubator
热度 45.42
最近更新 2026-10-18 16:49:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add callstackincubator/agent-skills/github-actions
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
github-actions
description
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.
license
MIT

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 and gha-android-composite-action.md.
  2. Wire them into .github/workflows/mobile-build.yml from gha-workflow-and-downloads.md.
  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

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

Problem -> Skill Mapping

Problem Start With
Need CI iOS simulator .app.tar.gz artifact gha-ios-composite-action.md
Need CI Android emulator .apk artifact gha-android-composite-action.md
Need one workflow to trigger both platform jobs gha-workflow-and-downloads.md
Need scripted artifact download gha-workflow-and-downloads.md

Source Inspiration