This is designed to help experiment with and learn about GitHub Actions.
To get started with GitHub Actions in this repository, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/gha-playground.git cd gha-playground
-
Create a new workflow:
- Navigate to the
.github/workflows
directory. - Create a new YAML file for your workflow, e.g.,
example-workflow.yml
.
- Navigate to the
-
Define your workflow:
- Use the GitHub Actions syntax to define your workflow steps.
Here is an example of a simple workflow that runs on every push:
name: Example Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run a one-line script
run: echo "Hello, GitHub Actions!"