I enjoy writing my blog posts, but it is getting better when you know that someone is reading them. The real magic happens when someone leaves a comment and I can start discussing the subject.
I learned that you have to expose your blog posts as much you can, without spamming or being annoying, to have a chance to someone read them.
- Create a new repository with the same name as your github username
- Create a README.md file at the repository root
- Access this awesome open source project (by @Rahuldkjain) to help you to generate the README.md file content
- Copy and paste the generated content into your README.md and commit it
The result will be something like my Github profile:
The above code implements a workflow to update a github profile README.md with the 5 latest posts from my blog feed. This workflow was defined to start manually by using workflow_dispatch option. You can change my feed URL to use your dev. to account, for example, my dev.to feed is https://dev.to/feed/renanfranca .
I am going to show you how to make it works.
Let’s change that workflow to execute automatically every hour. Replace this
on: schedule: - cron: '0 * * * *'
The final file will be like this
A special thanks to @Rahuldkjain and @gautamkrishnar for building the awesome open source projects that I used on this post. Please, visit rahuldkjain’s project repository and gautamkrishnar’s project repository and give it a star 🤩