From the course: GitHub Actions Cert Prep by Microsoft Press
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Demonstrate a GitHub event to trigger a workflow based on a practical use case - GitHub Tutorial
From the course: GitHub Actions Cert Prep by Microsoft Press
Demonstrate a GitHub event to trigger a workflow based on a practical use case
- [Timothy] So look at a practical example. The exam, by the way, is going to be all about practical real world examples and use cases. This use case says automatically, well, the scenario I should say, is we want to automatically deploy a website to Netlify every time a new commit is pushed to the main branch. All right, our implementation is we'll push a new workflow to the GitHub repo that says whenever you push a new commit to main, the workflow will automatically deploy the website to Netlify. There you go, done and done, isn't that convenient? An example of the code, again, let me bring out my drawing tools to illustrate this. In this example, that Netlify example, we're saying that whenever a push or a commit happens on main, we're then going to kick off these jobs. This job will deploy on cloud servers. They're actually called runners. That's a term you should know for your exam. Runners are GitHub hosted cloud-based VMs, and that army of virtual machines, you can choose from…
Contents
-
-
-
Learning objectives30s
-
(Locked)
Configure workflows to run for one or more events6m 16s
-
(Locked)
Configure workflows to run for scheduled events31s
-
(Locked)
Configure workflows to run for manual events34s
-
(Locked)
Configure workflows to run for webhook events40s
-
(Locked)
Demonstrate a GitHub event to trigger a workflow based on a practical use case16m 6s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-