Script for publishing articles on Dev.to via API with webhook support and automatic HTML to Markdown conversion.
- Ruby
- API key from Dev.to
- Bundler for dependency management
- Publishing articles via Dev.to API
- Webhook support for automatic publishing
- Automatic HTML to Markdown conversion
- Support for meta descriptions and article covers
- Secure webhook validation via secret key
- Get the API key from the Dev.to Settings page
- Set the required environment variables:
# API key for Dev.to
export DEVTO_API_KEY='your-api-key'
# Secret key for webhooks (create your own)
export WEBHOOK_SECRET='your-secret-key'
or update .env file with your keys:
cp .env.example .env