This commit is contained in:
parent
6fb9b78484
commit
4bba2b8131
@ -34,8 +34,8 @@ jobs:
|
||||
- name: Build Hugo Site
|
||||
run: |
|
||||
# Create the target directory if it doesn't exist
|
||||
sudo mkdir -p /data/hugo/public
|
||||
sudo chown -R root:root /data/hugo
|
||||
mkdir -p /data/hugo/public
|
||||
chown -R root:root /data/hugo
|
||||
|
||||
# Build directly in the workspace
|
||||
hugo --minify --debug
|
||||
@ -44,8 +44,8 @@ jobs:
|
||||
ls -la public/
|
||||
|
||||
echo "Copying files to mounted volume..."
|
||||
sudo rm -rf /data/hugo/public/* # Clean target directory first
|
||||
sudo cp -rv public/* /data/hugo/public/
|
||||
rm -rf /data/hugo/public/* # Clean target directory first
|
||||
cp -rv public/* /data/hugo/public/
|
||||
|
||||
echo "Final contents of mounted volume:"
|
||||
ls -la /data/hugo/public/
|
||||
Loading…
x
Reference in New Issue
Block a user