From 60c288d5369c7787887bc5bf6b60e8be74b9d9de Mon Sep 17 00:00:00 2001 From: John Date: Sun, 9 Mar 2025 08:14:33 -0500 Subject: [PATCH] update build script to create directory --- .gitea/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 79cc9f8..72382a8 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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/