A workflow is a repository-stored definition that tells GitHub Actions when to run and what jobs and steps to execute. It can run on demand or automatically, such as after a push. section 4.1.1
To create one, place a YAML file in `.github/workflows/`, then commit and push it to GitHub. GitHub Actions runs the defined code on its servers. section 4.1.1
Listing 4.2 Hello World with GitHub Actions
name: Hello World
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Hello World
run: echo "Hello World"
A minimal workflow configures manual and push triggers, a build job, and steps to check out the repository and print a greeting. section 4.1.1






