Skip to content

Commit 30347af

Browse files
author
marci
committed
Füge Build- und Wrangler-Konfigurationsdateien hinzu
1 parent 1d49cbe commit 30347af

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#1/usr/bin/env bash
2+
3+
main() {
4+
Hugo_VERSION="0.148.1"
5+
6+
export TZ="Europe/Berlin"
7+
8+
# Install Hugo
9+
echo "Installing Hugo version $Hugo_VERSION..."
10+
curl -LJO "https://github.com/gohugoio/hugo/releases/download/v$Hugo_VERSION/hugo_extended_$Hugo_VERSION_Linux-64bit.tar.gz"
11+
tar -xzf "hugo_extended_$Hugo_VERSION_Linux-64bit.tar
12+
cp hugo /opt/buildhome
13+
rm LICENSE.txt README.md hugo_extended_$Hugo_VERSION_Linux-64bit.tar.gz
14+
15+
echo "Hugo version $Hugo_VERSION installed successfully."
16+
echo Go: "${go version}"
17+
echo "Hugo version: $(hugo version)"
18+
echo Node.js version: "$(node -v)"
19+
20+
echo "Clone Toha theme..."
21+
git submodule update --init --recursive
22+
git config core.quotepath false
23+
24+
echo "Building site..."
25+
hugo --gc --minify
26+
}
27+
28+
set -euo pipefail
29+
main "$@"

.github/workflows/wrangler.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name = "securebitsblog"
2+
comnpatibility-date = "2025-07-21"
3+
4+
[build]
5+
command = "./build.sh"
6+
7+
[assets]
8+
directory = "./public"
9+
not-found-handling = "404-page"

0 commit comments

Comments
 (0)