Comment on page
this article is published to dev to with github action
Happy New year!
As articles are already written in Markdown, I would like to have this synchronized to my Dev.to whenever there is update to the contents. The idea is to run a script on new commit that sync the change to Dev.to.
- 1.Figure out markdown file that added or changed in the current commit.
- 2.Fetch all articles from Dev.to via an API.
- 3.For each local article, compare it to Dev.to (using a canonical URL).
- 4.Create or Update the article accordingly via the API.