العربية
Back

AI

Your first GitHub Actions workflow: from the web UI to seeing the result

Creating your first workflow from GitHub's web UI as the official quickstart shows: where the file goes, what triggers it, where to read the result, and beginner mistakes.

Last reviewed:

What you will learn

The official guide defines Actions as a CI/CD platform that automates build, test and deployment, and shows how to add a workflow from GitHub's web UI without installing anything locally.

What to prepare

  • Basic GitHub knowledge: repositories, branches and pull requests.
  • A repository where you can add files.
  • Access to Actions; if its tab is missing it may be disabled for the repository.

Steps

  1. In the repository click Add file, then Create new file, and name it .github/workflows/github-actions-demo.yml to create the folders and file together.
  2. Paste the example from the guide. It starts with a name and on: [push], and defines a job on ubuntu-latest that prints messages, checks out the code with actions/checkout and lists the repository files.
  3. Click Commit changes and choose the default branch or a new branch with a pull request.
  4. Because the commit triggers the push event, the workflow starts by itself.
  5. Open the Actions tab, pick the workflow in the sidebar, then the run you want to read.

Ready-made templates

GitHub analyzes your code and suggests suitable templates, such as Node.js ones. The guide lists CI, deployment, automation, code scanning and Pages, sourced from the actions/starter-workflows repository.

Common mistakes

  • Putting the file outside .github/workflows.
  • Using an extension other than yml or yaml.
  • Copying a workflow from an untrusted source without reading it. My advice, not the guide's.
  • Mixing up YAML indentation.

Latest updates

The guide was read on 2026-11-30 and its example uses actions/checkout@v6. Action versions change, so copy the current example from the guide, not from this page. I did not run the workflow myself.

Similar tools

To understand the components read GitHub Actions, for publishing read GitHub Pages, and for a cloud dev environment read Codespaces.

Not verified

The rest of the guide after viewing results and the workflow syntax pages were not read.

Related pages

Sources

Wording is ours, from the official source. Images and video belong to their owners and are credited with a link to the official page.

#github-actions#ci-cd#workflow#dev#exec

Frequently asked questions

Where does the workflow file go?

In the .github/workflows directory in the repository, with any name but a .yml or .yaml extension. GitHub will not discover it elsewhere.

What triggers it?

In the quickstart's example it is the push event: committing to a branch runs the workflow. To understand Actions components (events, jobs, runners) read the overview page.

GitHub Actions: automate build, test and deploy from your repository

I do not see the Actions tab. Why?

Per the guide, Actions may be disabled for the repository. To publish a site once your workflow works read the GitHub Pages page.

GitHub Pages: host a static site straight from a GitHub repository