DEV Community

Cover image for Publish blog posts from GIT to dev.to
anilkulkarni87
anilkulkarni87

Posted on

1

Publish blog posts from GIT to dev.to

Actions Status

Publish blog posts from GITHUB to dev.to

This is a template repo which where I am testing and building solution for automated publishing of my articles/blog posts to dev. It's just a lot of work to post the same article across places and hence I decided to automate publishing my posts to dev and eventually any other personal blogs.

Dev exposes API through which you could do a lot of things. I am currently only creating articles which will be in your drafts.

image
Generated via code(Python)

Approach

  • Clone this repo, cleanup the files and arrange your blog posts.
  • Create a markdown file for your blog post. You can check the folder structure in the repo.
  • Setup your DEV TOKEN in your repo with the name as GIT_TO_DEV
  • Commit the changes made to your .md files.
  • Voila after the workflow is complete, you can see the blog posts created in draft.
  • Also, I am persisting the json payload of the article with the id populated.

Next steps

  • Identify new files and modified markdown files
  • For new files, create new articles
  • For modified, update the articles

Thanks

Bugs/Changes

Please modify any typos or corrections and create a pull request to make this better.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (1)

Collapse
 
k1lgor profile image
k1lgor

link to the repo?

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more