update build script to create directory
All checks were successful
Build Hugo Site / build (push) Successful in 6s

This commit is contained in:
John 2025-03-09 08:14:33 -05:00
parent 997080a31d
commit 60c288d536

View File

@ -27,11 +27,15 @@ jobs:
- name: Build Hugo Site
run: |
# Build directly in the workspace, then copy to the mounted volume
# Create the target directory if it doesn't exist
mkdir -p /data/hugo/public
# Build directly in the workspace
hugo --minify
# Copy the generated files to the mounted volume
cp -r public/* /data/hugo/public/
# Verify the copy was successful
# Verify the copy was successful and show permissions
ls -la /data/hugo/
ls -la /data/hugo/public/