Skip to content

Instantly share code, notes, and snippets.

View repercussive's full-sized avatar
👨‍🏫

Liam Robertson repercussive

👨‍🏫
View GitHub Profile
@repercussive
repercussive / ci-cd.yml
Created September 7, 2023 02:27
Annotated solution for GitHub Actions CI/CD lab
# The name of our workflow.
name: CI/CD
# What we put inside the "on" object determines which event(s) triggers the workflow (e.g. pushes, pull requests, merges, branch creation...)
on:
# In our case, we want the workflow to be triggered every time there is a push to the repository...
push:
# ... but only on the main branch.
branches:
- main