GitHub Actions Workflow

GitHub Actions Workflow

Guides an AI agent to build GitHub Actions workflows for testing, security scanning, Docker builds, releases and deployment.

Skill files6 files

references/

scripts/

templates/

SKILL.md98 lines
1
---
2
name: github-actions-workflow
3
description: >
4
Build comprehensive GitHub Actions workflows for CI/CD, testing, security, and
5
deployment. Master workflows, jobs, steps, and conditional execution.
6
---
7
8
# GitHub Actions Workflow
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.
21
22
## When to Use
23
24
- Continuous integration and testing
25
- Build automation
26
- Security scanning and analysis
27
- Dependency updates
28
- Automated deployments
29
- Release management
30
- Code quality checks
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# .github/workflows/ci.yml
38
name: CI/CD Pipeline
39
40
on:
41
push:
42
branches: [main, develop]
43
pull_request:
44
branches: [main, develop]
45
46
env:
47
REGISTRY: ghcr.io
48
IMAGE_NAME: ${{ github.repository }}
49
50
jobs:
51
test:
52
runs-on: ubuntu-latest
53
strategy:
54
matrix:
55
node-version: [16.x, 18.x, 20.x]
56
steps:
57
- uses: actions/checkout@v3
58
59
- name: Setup Node ${{ matrix.node-version }}
60
uses: actions/setup-node@v3
61
with:
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Complete CI/CD Workflow](references/complete-cicd-workflow.md) | Complete CI/CD Workflow |
72
| [Automated Release Workflow](references/automated-release-workflow.md) | Automated Release Workflow |
73
| [Docker Build and Push](references/docker-build-and-push.md) | Docker Build and Push |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Use caching for dependencies (npm, pip, Maven)
80
- Run tests in parallel with matrix strategy
81
- Require status checks on protected branches
82
- Use environment secrets and variables
83
- Implement conditional jobs with `if:`
84
- Lint and format before testing
85
- Set explicit permissions with permissions
86
- Use runner labels for specific hardware
87
- Cache Docker layers for faster builds
88
89
### ❌ DON'T
90
91
- Store secrets in workflow files
92
- Run untrusted code in workflows
93
- Use `secrets.*` with pull requests from forks
94
- Hardcode credentials or tokens
95
- Miss error handling with `continue-on-error`
96
- Create overly complex workflows
97
- Skip testing on pull requests
98

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…