Skip to content

docs - quick patch #1270

docs - quick patch

docs - quick patch #1270

name: "Docs: Dry Run Production Deployment"
on:
pull_request:
paths:
- 'docs/**'
- '.github/workflows/*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
with:
hugo-version: '0.153.4' # renovate: datasource=github-releases depName=gohugoio/hugo
extended: true
- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: '24.12.0' # TODO: Renovate helper might not be needed here - needs to be fully tested
- name: Cache dependencies
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: recursive
fetch-depth: 0
- name: Test the build process
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: cd docs && npm ci && hugo --minify --gc --config config/production/hugo.toml