21 lines
664 B
Bash
Executable File
21 lines
664 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
set -e
|
|
|
|
echo "Building CSS..."
|
|
# Assuming sass is installed and available in the environment or Docker image
|
|
# Compile theme.scss to theme.css
|
|
sass assets/css/scss/theme.scss static/assets/css/theme.css
|
|
|
|
echo "Fetching content from WordPress..."
|
|
# Assuming Node.js is installed and available in the environment or Docker image
|
|
node scripts/fetch-wordpress.js
|
|
|
|
echo "Generating production build with Hugo..."
|
|
|
|
# Assuming Hugo is installed and available in the environment or Docker image
|
|
hugo --minify --environment production --config hugo.toml
|
|
|
|
echo "Build process completed successfully!"
|