Skip to content

actions-hugo v3.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 07:08
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
d1c81a1

See CHANGELOG.md for more details.

Dart Sass support

You can now install standalone Dart Sass alongside Hugo with the optional dart-sass-version input:

- uses: peaceiris/actions-hugo@v3.3.0
  with:
    hugo-version: '0.160.1'
    dart-sass-version: '1.108.2'
- run: hugo --minify

Select the Dart Sass transpiler in your Hugo template:

{{ $css := resources.Get "scss/main.scss" | css.Sass (dict "transpiler" "dartsass") }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
  • Requires Hugo 0.114.0 or later and works independently of extended. Use resources.ToCSS on older Hugo template APIs. The old dart-sass-embedded protocol is not supported.
  • Supports Linux glibc, macOS, and Windows on x64 or arm64, when the selected release publishes the matching asset. Musl is not supported.
  • Use a fixed major.minor.patch version; latest, ranges, and URLs are not accepted. Omitting the input preserves existing behavior, with no Sass network requests or PATH changes.
  • A valid GitHub API SHA-256 digest is required. Archives are verified before extraction or execution. Missing digests or assets, API errors, and checksum mismatches fail the action; there is no unverified fallback. Older Sass releases may lack a digest.
  • The new github-token input defaults to ${{ github.token }} for release metadata requests. Read-only permissions suffice; no token configuration is needed for typical use.

Digest verification checks integrity against the same publisher; it is not a signature or an independent immutable checksum pin.

See Dart Sass installation details for token overrides, platform selection, and the trust model.