An open API service indexing awesome lists of open source software.

https://github.com/ksingh7/blogs


https://github.com/ksingh7/blogs

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

## Automated Release Pipeline for my Blogs

I frequently blogs on multiple platforms medium, dev.to and hashnode, links to my blogs are
- [ksingh7.medium.com](https://ksingh7.medium.com/)
- [dev.to/ksingh7](https://dev.to/ksingh7)
- [blog.ksingh.in/](https://blog.ksingh.in/)

This repository is the single source of truth for all my blogs

## How i Automated my blogs

- Copy the `template.md` file under the posts directory and give it a sane name
- Write content in your new `posts/automated-release-pipeline-for-my-blogs.md`
- Git add/commit/create tag/push tag
```
git add . ; git commit -am "blog:automated-release-pipeline-for-my-blogs" ; git push origin main
git tag -a blog-automated-release-pipeline -m "automated-release-pipeline-for-my-blogs"
git push origin blog-automated-release-pipeline
```
- Head over to [Github Actions UI](https://github.com/ksingh7/blogs/actions)
- Let the Github Action Complete
- Head over to your blog properties (login required)
- [ksingh7.medium.com](https://medium.com/me/stories/public)
- [dev.to/ksingh7](https://dev.to/dashboard)

### Note
- In case you do not publish / re-publish a blog put that in drafts directory
- If you want to modify an already published blog then
- Go to the blog platform and update the required section. This way the blog views will not be affected
- (else danger zone) Delete the blog from the platform and re-publish it
- I also sometime uses [bloggu.io](https://bloggu.io/) for publishing blogs on all 3 platforms, its a great tool
## Blog Template

```
---
title: Your Title Goes Here
description: Your Description goes here
tags: 'productivity,beginners,test'
# cover_image: ./assets/cat.jpeg (currently does not work)
canonical_url: null
published: false
---
![Cover Image](https://images.unsplash.com/photo-1644333192059-10ec15101699)

Some random text with a [link](https://code.visualstudio.com).

## Serious title

Add some text here and there!

![and some pictures too](./assets/cat.jpeg)

## Some Code Snippet

```python

def myFunction()
return true

```