Skip to content

Commit 6a40c49

Browse files
author
marci
committed
Aktualisiere Hugo-Version auf 0.148.1 und füge Installation von Go zum Build-Skript hinzu
1 parent 76dd316 commit 6a40c49

1 file changed

Lines changed: 45 additions & 38 deletions

File tree

.github/workflows/build.sh

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,51 @@
1212

1313
main() {
1414

15-
DART_SASS_VERSION=1.89.2
16-
HUGO_VERSION=0.148.0
17-
18-
export TZ=Europe/Oslo
19-
20-
# Install Dart Sass
21-
echo "Installing Dart Sass v${DART_SASS_VERSION}..."
22-
curl -LJO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
23-
tar -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
24-
cp -r dart-sass/ /opt/buildhome
25-
rm -rf dart-sass*
26-
27-
# Install Hugo
28-
echo "Installing Hugo v${HUGO_VERSION}..."
29-
curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
30-
tar -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
31-
cp hugo /opt/buildhome
32-
rm LICENSE README.md hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
33-
34-
# Set PATH
35-
echo "Setting the PATH environment variable..."
36-
export PATH=/opt/buildhome:/opt/buildhome/dart-sass:$PATH
37-
38-
# Verify installed versions
39-
echo "Verifying installations..."
40-
echo Dart Sass: "$(sass --version)"
41-
echo Go: "$(go version)"
42-
echo Hugo: "$(hugo version)"
43-
echo Node.js: "$(node --version)"
44-
45-
# https://gohugo.io/methods/page/gitinfo/#hosting-considerations
46-
git fetch --recurse-submodules --unshallow
47-
48-
# https://github.com/gohugoio/hugo/issues/9810
49-
git config core.quotepath false
50-
51-
# Build the site.
52-
hugo --gc --minify
15+
DART_SASS_VERSION=1.89.2
16+
HUGO_VERSION=0.148.1
17+
GO_VERSION=1.24.4
18+
19+
export TZ=Europe/Oslo
20+
21+
# Install Dart Sass
22+
echo "Installing Dart Sass v${DART_SASS_VERSION}..."
23+
curl -LJO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
24+
tar -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
25+
cp -r dart-sass/ /opt/buildhome
26+
rm -rf dart-sass*
27+
28+
# Install Go
29+
echo "Installing Go v${GO_VERSION}..."
30+
curl -LJO "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz"
31+
tar -xf "go${GO_VERSION}.linux-amd64.tar.gz" -C /opt
32+
rm "go${GO_VERSION}.linux-amd64.tar.gz"
33+
34+
# Install Hugo
35+
echo "Installing Hugo v${HUGO_VERSION}..."
36+
curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
37+
tar -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
38+
cp hugo /opt/buildhome
39+
rm LICENSE README.md hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
40+
41+
# Set PATH
42+
echo "Setting the PATH environment variable..."
43+
export PATH=/opt/buildhome:/opt/buildhome/dart-sass:$PATH
44+
45+
# Verify installed versions
46+
echo "Verifying installations..."
47+
echo Dart Sass: "$(sass --version)"
48+
echo Go: "$(go version)"
49+
echo Hugo: "$(hugo version)"
50+
echo Node.js: "$(node --version)"
51+
52+
# https://gohugo.io/methods/page/gitinfo/#hosting-considerations
53+
git fetch --recurse-submodules --unshallow
54+
55+
# https://github.com/gohugoio/hugo/issues/9810
56+
git config core.quotepath false
57+
58+
# Build the site.
59+
hugo --gc --minify
5360

5461
}
5562

0 commit comments

Comments
 (0)