I'm thinking about to have my blog posts as markdown files in a git repo, which are automatically are published to dev.to. Also a change at the markdown file should trigger a change to the dev.to blog post.
What are the best ways?
I found following approaches on GitHub:
📮 GitHub Action to publish markdown files on dev.to platform, with assets hosted on GitHub.
A GitHub Action that allows you to publish an article to Dev.to
This is a work in progress. Currently it provides initial functionality to publish\update an article to the Dev.to blogging platform.
What does this action do?
This action takes a file that provides a listing of files that you are interested in (i.e. files that were changed in a pull request, provided by a previous action or step) and then scrapes that list for markdown files. Once it has filtered for just markdown files, it then assembles an appropriate json request and sends it to Dev.to. As long as everything is successful, the action will let you know that the article has been pushed to dev.to. Otherwise it will let you know that the file has failed and it will fail that run of the action.
This action assumes that you are using frontmatter in your markdown to provide a number of required fields. This was done as…
And also some on dev.to: