Skip to content

Commit d57516f

Browse files
author
marci
committed
Korrigiere Installationsschritte für Hugo im Build-Skript und aktualisiere die Löschbefehle für temporäre Dateien
1 parent 4a0e364 commit d57516f

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ main() {
1414
rm -rf dart-sass*
1515

1616
# Install Hugo
17-
echo "Installing Hugo version $Hugo_VERSION..."
18-
curl -LJO "https://github.com/gohugoio/hugo/releases/download/v$Hugo_VERSION/hugo_extended_$Hugo_VERSION_linux-amd64.tar.gz"
19-
tar -xzf "hugo_extended_$Hugo_VERSION_linux-amd64.tar
17+
echo "Installing Hugo v${HUGO_VERSION}..."
18+
curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
19+
tar -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
2020
cp hugo /opt/buildhome
21-
rm LICENSE.txt README.md hugo_extended_$Hugo_VERSION_linux-amd64.tar.gz
21+
rm LICENSE README.md hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
22+
2223

2324
# Set PATH
2425
echo "Setting the PATH environment variable..."
@@ -31,8 +32,9 @@ main() {
3132
echo Node.js version: "$(node -v)"
3233
echo NPM version: "$(npm -v)"
3334

34-
echo "Clone Toha theme..."
35-
git submodule update --init --recursive
35+
# https://gohugo.io/methods/page/gitinfo/#hosting-considerations
36+
git fetch --recurse-submodules --unshallow
37+
3638
git config core.quotepath false
3739

3840
echo "Building site..."

0 commit comments

Comments
 (0)