mirror of
https://github.com/andwati/pwnforfunandprofit.xyz.git
synced 2026-10-18 02:12:52 +00:00
feat: Update build script for Zola installation and adjust compatibility date in wrangler configuration
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
main() {
|
||||
ZOLA_VERSION=0.22.1
|
||||
set -euo pipefail
|
||||
|
||||
curl -sLJO "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
|
||||
tar -xf zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
ZOLA_VERSION=0.22.1
|
||||
|
||||
git submodule update --init --recursive
|
||||
echo "Downloading Zola ${ZOLA_VERSION}..."
|
||||
curl -sLJO "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
|
||||
|
||||
./zola build
|
||||
}
|
||||
echo "Extracting Zola..."
|
||||
tar -xf zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
|
||||
set -euo pipefail
|
||||
echo "Building site with Zola..."
|
||||
./zola build
|
||||
|
||||
echo "Build complete! Generated files:"
|
||||
ls -la public/
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name = "pwnforfunandprofit"
|
||||
compatibility_date = "2026-01-22"
|
||||
compatibility_date = "2026-03-26"
|
||||
|
||||
[build]
|
||||
command = "./build.sh"
|
||||
|
||||
Reference in New Issue
Block a user