Repository navigation
Releases
Releases · Walsen/hugo2devto
Release v1.2.0
What's new in v1.2.0
Fixes four defects found after a real publish rendered broken and silently created duplicates.
Added
- Idempotent publishing — looks up existing articles (
GET /articles/me/all, drafts included), matches oncanonical_url(title fallback, logged) and updates in place withPUTinstead of creating a duplicate. Newactionoutput (created/updated); 429 retry withRetry-After. - Hugo
gallery/gallery-itemconversion to plain Markdown — images become+ caption; videos become a poster thumbnail linked to the file. Layout attrs dropped (Dev.to stripsclass/style).adsensedropped; any other shortcode is left visible with a warning. - New
default-languageinput (defaulten, no path prefix, matching Hugo'sDefaultContentLanguage) andposts-pathinput. - Support for an explicit
slug:front-matter field. - Real unit tests for the pure converters + gallery/unknown-shortcode fixtures.
Fixed
- Canonical URLs no longer insert a language segment for the default language (was emitting
/en/posts/..., which 404s). - Language detected from the
content/<lang>/path segment, not a naiveincludes('/en/'). - Slug derivation collapses runs of whitespace and hyphens (matches Hugo's
urlize). - CI: fixed an invalid job-level
secretscondition intest.yml; consolidatedauto-build.ymlsteps.
See CHANGELOG.md for full details.
Usage
- uses: Walsen/hugo2devto@v1
with:
api-key: ${{ secrets.DEVTO_API_KEY }}
file-path: 'content/en/posts/my-post.md'Release v1
Changes in this Release
See CHANGELOG.md for details.
Usage
- uses: your-username/hugo-to-devto-action@refs/tags/v1
with:
api-key:
file-path: 'path/to/post.md'Release v1.1.0
Changes in this Release
See CHANGELOG.md for details.
Usage
- uses: Walsen/hugo-to-devto-action@v1
with:
api-key:
file-path: 'path/to/post.md'Release v1.0.0
Changes in this Release
See CHANGELOG.md for details.
Usage
- uses: your-username/hugo-to-devto-action@refs/tags/v1.0.0
with:
api-key:
file-path: 'path/to/post.md'