update build script to create directory
All checks were successful
Build Hugo Site / build (push) Successful in 6s
All checks were successful
Build Hugo Site / build (push) Successful in 6s
This commit is contained in:
parent
997080a31d
commit
60c288d536
@ -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/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user