Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.
Detailed implementations in the references/ directory:
Guide
Contents
Complete CI/CD Workflow
Complete CI/CD Workflow
Automated Release Workflow
Automated Release Workflow
Docker Build and Push
Docker Build and Push
Best Practices
✅ DO
Use caching for dependencies (npm, pip, Maven)
Run tests in parallel with matrix strategy
Require status checks on protected branches
Use environment secrets and variables
Implement conditional jobs with if:
Lint and format before testing
Set explicit permissions with permissions
Use runner labels for specific hardware
Cache Docker layers for faster builds
❌ DON'T
Store secrets in workflow files
Run untrusted code in workflows
Use secrets.* with pull requests from forks
Hardcode credentials or tokens
Miss error handling with continue-on-error
Create overly complex workflows
Skip testing on pull requests
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-github-actions-workflow3description: GitHub Actions Workflow4---56# GitHub Actions Workflow78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.1920## When to Use2122- Continuous integration and testing23- Build automation24- Security scanning and analysis25- Dependency updates26- Automated deployments27- Release management28- Code quality checks2930## Quick Start3132Minimal working example:3334```yaml35# .github/workflows/ci.yml36name: CI/CD Pipeline3738on:39 push:40 branches: [main, develop]41 pull_request:42 branches: [main, develop]4344env:45 REGISTRY: ghcr.io46 IMAGE_NAME: ${{ github.repository }}4748jobs:49 test:50 runs-on: ubuntu-latest51 strategy:52 matrix:53 node-version: [16.x, 18.x, 20.x]54 steps:55 - uses: actions/checkout@v35657 - name: Setup Node ${{ matrix.node-version }}58 uses: actions/setup-node@v359 with:60// ... (see reference guides for full implementation)61```6263## Reference Guides6465Detailed implementations in the `references/` directory:6667| Guide | Contents |68|---|---|69| [Complete CI/CD Workflow](references/complete-cicd-workflow.md) | Complete CI/CD Workflow |70| [Automated Release Workflow](references/automated-release-workflow.md) | Automated Release Workflow |71| [Docker Build and Push](references/docker-build-and-push.md) | Docker Build and Push |7273## Best Practices7475### ✅ DO7677- Use caching for dependencies (npm, pip, Maven)78- Run tests in parallel with matrix strategy79- Require status checks on protected branches80- Use environment secrets and variables81- Implement conditional jobs with `if:`82- Lint and format before testing83- Set explicit permissions with permissions84- Use runner labels for specific hardware85- Cache Docker layers for faster builds8687### ❌ DON'T8889- Store secrets in workflow files90- Run untrusted code in workflows91- Use `secrets.*` with pull requests from forks92- Hardcode credentials or tokens93- Miss error handling with `continue-on-error`94- Create overly complex workflows95- Skip testing on pull requests9697---98> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.99<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-github-actions-workflow in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
GitHub Actions Workflow It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.