Skip to content

About

dev.to

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rss/atom feed to dev.to cross-posting

Publish and sync articles to dev.to from an RSS/Atom feed or directly via workflow inputs.

Automatic Feed Sync (Create and Update)

name: Sync blog to dev.to
on:
  workflow_dispatch:
  schedule:
    - cron: '0 9 * * *' # Check daily

permissions:
  contents: read

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5

      - name: Publish or update feed items
        uses: light-cms/dev-dot-to@1.0.0
        with:
          rss_url: https://blogs.lightcms.me/atom.xml
          devto_token: ${{ secrets.DEVTO_TOKEN }}
          published: 'true'
          max_posts: '10'
          update_existing: 'true' # Updates already published posts if they exist

Update an Existing Post by ID (Single Mode)

- name: Update specific dev.to article
  uses: light-cms/dev-dot-to@1.0.0
  with:
    devto_token: ${{ secrets.DEVTO_TOKEN }}
    article_id: '123456'
    title: 'Updated Post Title'
    body_markdown: 'Updated markdown content...'
    published: 'true'

DEVTO_TOKEN is a repository secret.

devto_token

token

About

dev.to

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages