fix: Update deployment workflow to use correct hugo_build script and improve logging
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- 'ansible/playbook_websites.yml'
|
||||
- 'bin/hugo_build'
|
||||
- 'websites/**'
|
||||
|
||||
jobs:
|
||||
@@ -39,7 +40,7 @@ jobs:
|
||||
trusted-hosts: ${{ secrets.TRUSTED_HOSTS }}
|
||||
|
||||
- name: Run hugo_build command
|
||||
run: bin/hugo_build.sh
|
||||
run: bin/hugo_build
|
||||
|
||||
- name: Run the playbook to deploy websites
|
||||
env:
|
||||
|
||||
+1
-1
@@ -29,6 +29,6 @@ for dir in $(find "$GITHUB_WORKSPACE/websites" -maxdepth 1 -type d | grep -vE '^
|
||||
fi
|
||||
echo "Hugo site built successfully in $dir"
|
||||
else
|
||||
echo "$dir is not a directory"
|
||||
echo "$dir is not a directory, skipping..."
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user