Whenever I publish a blog post here on Dev Community, or achieve a new badge from Credly, I have to manually update my GitHub profile to display these updates. It's not the most exciting task and can be a drain on productivity.
There has to be a way to automate the boring stuffs, right? Isn’t that what developers do?
The answer is yes! This is where GitHub Actions comes in.
In this blog post, we will explore GitHub Actions automation solution to eliminate this repetitive process.
GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline.
GitHub Actions helps you automate processes in your GitHub repository using workflows. Workflows are configurable-automated processes that will run one or more jobs. Workflows are defined by a YAML file checked in to your repository and will run when triggered by an event in your repository, or they can be triggered manually, or at a defined schedule. Learn how to write GitHub Actions YAML files in the GitHub Tutorial.
Let's get into it. The code used in this blog post can be found on my GitHub repository
<a name="Devto"></a>
a.) Edit your special repository README file on GitHub <username>/<username>/README.md
. Add the following section to your README.md file:
---
## Latest Blog Posts
<!-- BLOG-POST-LIST:START -->
<!-- BLOG-POST-LIST:END -->
b.) On this special repository, create a folder named .github
and create workflows
folder inside if it doesn't already exist.
c.) Create a new file named blogpost-update.yml
inside this workflows directory. Copy and paste the below YAML code inside the file you just created: