Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish blogs automatically from github to hashnode #305

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

bnchi
Copy link
Contributor

@bnchi bnchi commented Jul 3, 2024

/claim #301
/fixes #301

summary :

  • Runs on every PR merge to develop
  • The design of the code make it easy to add different publishers with different API formats like medium, dev.to etc .. by simply implementing the Publisher interface and adding a new publisher.
  • supports drafts, edits and publishing
  • Runs an auto commit to update the status and the post id in the MD file, to make sure that when updating an article in the supported platform there's no any conflicts. Just make sure that Read and write permissions are enabled for workflows in the repo

success build for publish :
https://github.com/bnchi/tailcallhq.github.io/actions/runs/9798924823/job/27058222285
article :
https://bnchi.hashnode.dev/slug-dummy-69

Example PR to update the article :
https://github.com/bnchi/tailcallhq.github.io/pull/6/files
and then the automated commit changes the status of the post to published :
bnchi@e52153b

Copy link

algora-pbc bot commented Jul 3, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

@bnchi bnchi changed the title feat: Publish blogs automatically from github to hashnode feat: publish blogs automatically from github to hashnode Jul 3, 2024
@bnchi bnchi marked this pull request as ready for review July 4, 2024 18:31
@bnchi
Copy link
Contributor Author

bnchi commented Jul 4, 2024

ready for review

run: |
cd ./publisher
npm install
npm run build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build should have happened in the previous build. I think we can just wait for it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish blogs automatically from github to hashnode
2 participants