Files
Aditya Telange a5d59c7d44 Fix/hugo v0.158.0 deprecations (#1884)
* fix(layouts): use non-deprecated .Language methods

Hugo v0.158.0 deprecated these in favour of new names:
- .Language.LanguageDirection -> .Language.Direction
- .Language.LanguageCode -> .Language.Locale
- .Language.LanguageName -> .Language.Label

Fixes the deprecation warnings shown on every build. Requires Hugo
v0.158.0 or later.

Closes #1856

* chore(theme): bump minimum hugo version to v0.158.0

* fix(schema_json): replace deprecated .Language.Lang with .Language.Name

ref: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869
2026-10-18 19:27:30 +05:30

57 lines
1.2 KiB
YAML

name: Build Check
on:
push:
paths-ignore:
- "images/**"
- "LICENSE"
- "README.md"
branches:
- master
- exampleSite
pull_request:
paths-ignore:
- "images/**"
- "LICENSE"
- "README.md"
branches:
- master
- exampleSite
workflow_dispatch:
# manual run
inputs:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.158.0"
defaults:
run:
shell: bash
jobs:
build-check:
runs-on: ubuntu-latest
env:
# min_version from theme.toml
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.158.0' }}
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/checkout@v6
with:
ref: exampleSite
- name: Get Theme
run: git submodule update --init --recursive
- name: Update theme to Latest commit
run: git submodule update --remote --merge
- name: Build with Hugo
run: hugo --buildDrafts --gc