102 β€” GitHub Actions Basics

Beginner

Master GitHub Actions workflow syntax, triggers, jobs, and steps to automate testing and deployment.

Learning Objectives

1
Create GitHub Actions workflows
2
Understand triggers and events
3
Define jobs and steps
4
Use actions from marketplace
Step 1

Create workflow directory

Set up structure for GitHub Actions workflows.

Commands to Run

cd cicd-demo
mkdir -p .github/workflows
ls -la .github/workflows

What This Does

GitHub Actions looks for workflow files in .github/workflows/. Each YAML file defines a workflow.

Expected Outcome

Directory created. Ready to add workflow files.

Pro Tips

  • 1
    All workflows go in .github/workflows/
  • 2
    Can have multiple workflow files
  • 3
    Files must have .yml or .yaml extension
Was this step helpful?

All Steps (0 / 10 completed)