Skip to content

Releases

Release v1.2.0

Choose a tag to compare

@Walsen Walsen released this 06 Sep 20:25
43cfa0f

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 on canonical_url (title fallback, logged) and updates in place with PUT instead of creating a duplicate. New action output (created/updated); 429 retry with Retry-After.
  • Hugo gallery/gallery-item conversion to plain Markdown — images become ![alt](src) + caption; videos become a poster thumbnail linked to the file. Layout attrs dropped (Dev.to strips class/style). adsense dropped; any other shortcode is left visible with a warning.
  • New default-language input (default en, no path prefix, matching Hugo's DefaultContentLanguage) and posts-path input.
  • 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 naive includes('/en/').
  • Slug derivation collapses runs of whitespace and hyphens (matches Hugo's urlize).
  • CI: fixed an invalid job-level secrets condition in test.yml; consolidated auto-build.yml steps.

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

Choose a tag to compare

@github-actions github-actions released this 26 Jan 00:55
43cfa0f

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

Choose a tag to compare

@github-actions github-actions released this 26 Jan 03:55
70413a0

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

Choose a tag to compare

@github-actions github-actions released this 26 Jan 00:55
cbc023d

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'