mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 23:15:12 -04:00
content: Update GitLab Pages workflow example
This commit is contained in:
parent
33968c7e23
commit
d443574189
@ -23,15 +23,15 @@ Define your [CI/CD](g) jobs by creating a `.gitlab-ci.yml` file in the root of y
|
|||||||
|
|
||||||
```yaml {file=".gitlab-ci.yml" copy=true}
|
```yaml {file=".gitlab-ci.yml" copy=true}
|
||||||
variables:
|
variables:
|
||||||
DART_SASS_VERSION: 1.85.0
|
DART_SASS_VERSION: 1.87.0
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
HUGO_VERSION: 0.144.2
|
HUGO_VERSION: 0.146.7
|
||||||
NODE_VERSION: 23.x
|
NODE_VERSION: 22.x
|
||||||
TZ: America/Los_Angeles
|
TZ: America/Los_Angeles
|
||||||
image:
|
image:
|
||||||
name: golang:1.23.4-bookworm
|
name: golang:1.24.2-bookworm
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
script:
|
script:
|
||||||
@ -53,6 +53,8 @@ pages:
|
|||||||
- apt-get install -y nodejs
|
- apt-get install -y nodejs
|
||||||
# Install Node.js dependencies
|
# Install Node.js dependencies
|
||||||
- "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
- "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
|
# Configure Git
|
||||||
|
- git config core.quotepath false
|
||||||
# Build
|
# Build
|
||||||
- hugo --gc --minify --baseURL ${CI_PAGES_URL}
|
- hugo --gc --minify --baseURL ${CI_PAGES_URL}
|
||||||
# Compress
|
# Compress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user