home / skills / willsigmon / sigstack / github-actions-expert
This skill helps you automate builds, tests, and deployments with GitHub Actions, optimizing workflows and leveraging reusable patterns.
npx playbooks add skill willsigmon/sigstack --skill github-actions-expertReview the files below or copy the command above to add this skill to your agents.
---
name: GitHub Actions Expert
description: GitHub Actions CI/CD - workflows, reusable actions, matrix builds, secrets management
allowed-tools: Read, Edit, Bash
model: sonnet
---
# GitHub Actions CI/CD Expert
Master GitHub Actions for automated builds, tests, and deployments.
## Key Advantages
- Deep GitHub integration
- Free for public repos
- 2,000 free minutes/mo (private)
- YAML-based configuration
- Extensive marketplace
## Workflow Patterns
### iOS Build & TestFlight
```yaml
name: iOS Build
on:
push:
branches: [main]
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Install dependencies
run: bundle exec pod install
- name: Build & Upload
env:
APP_STORE_CONNECT_API_KEY: ${{ secrets.ASC_KEY }}
run: |
bundle exec fastlane beta
```
### Node.js CI with Caching
```yaml
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install
- run: pnpm test
- run: pnpm build
```
### Matrix Strategy
```yaml
jobs:
test:
strategy:
matrix:
node: [18, 20, 22]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
```
### Reusable Workflows
```yaml
# .github/workflows/deploy.yml
on:
workflow_call:
inputs:
environment:
required: true
type: string
secrets:
DEPLOY_KEY:
required: true
jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- run: echo "Deploying to ${{ inputs.environment }}"
```
## Secrets Management
- Repository secrets: Settings → Secrets
- Environment secrets: Per-environment isolation
- OIDC tokens: Passwordless cloud auth
## AI Integration (2026)
- GitHub Copilot in Actions: Suggest workflow improvements
- AI-powered failure diagnosis
- Predictive test selection
Use when: CI/CD pipelines, automated testing, deployment automation, GitHub-based workflows
This skill teaches practical GitHub Actions CI/CD patterns for automated builds, tests, and deployments. It covers YAML workflows, reusable actions, matrix builds, and secure secrets handling to streamline GitHub-native pipelines. The content focuses on reproducible, fast, and secure automation for TypeScript and multi-platform projects.
I explain common workflow recipes and what each step inspects or executes: checking out code, setting up runtimes, installing dependencies, running tests and builds, and invoking deployment steps. I show matrix strategies to run combinations of OS and runtime versions in parallel and how to call reusable workflows with inputs and required secrets. I also cover secrets management and modern authentication options like OIDC and AI-assisted improvements for diagnosing failures or optimizing test selection.
How do reusable workflows pass secrets securely?
Reusable workflows declare required secrets under workflow_call; calling workflows must supply those secrets through repo or environment secrets to avoid exposing values in logs.
When should I use a matrix vs separate jobs?
Use a matrix to run similar jobs across multiple runtimes or OSes in parallel. Use separate jobs when steps differ significantly or need distinct resource allocation or concurrency control.