Skip to content

Ge 2025 sponsor

Ge 2025 sponsor #7399

Workflow file for this run

name: test hugo
on: [pull_request]
env:
NODE_VERSION: 16
HUGO_VERSION: 0.126.1
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint Filenames
uses: julie-ng/lowercase-linter@v1
id: lint_filenames
continue-on-error: false
with:
path: "."
pr-comment: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
test-linux:
needs: lint
name: Build hugo on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Build Hugo
run: hugo --environment=production --minify --templateMetrics --logLevel info
# test-windows:
# needs: lint
# name: Build hugo on Windows
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true # Fetch Hugo themes (true OR recursive)
# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# - name: Setup Hugo
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: ${{ env.HUGO_VERSION }}
# - name: Build
# run: hugo -v