Skip to content

Commit c8ce97c

Browse files
committed
ci(hugo): upgrade Hugo version to 0.155.1 and fix sitemap permissions
* Updated HUGO_VERSION from 0.154.4 to 0.155.1 * Changed sitemap permissions handling to remove the file instead of modifying permissions * Ensured Node.js dependencies are installed from the 'src' directory
1 parent bc2c7b2 commit c8ce97c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
DART_SASS_VERSION: 1.97.2
2525
GO_VERSION: 1.25.5
26-
HUGO_VERSION: 0.154.4
26+
HUGO_VERSION: 0.155.1
2727
NODE_VERSION: 24.12.0
2828
TZ: Europe/Lisbon
2929
steps:
@@ -76,6 +76,7 @@ jobs:
7676
echo "Node.js: $(node --version)"
7777
7878
- name: Install Node.js dependencies
79+
working-directory: src
7980
run: |
8081
[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
8182
@@ -97,7 +98,7 @@ jobs:
9798
# add +w permission to public/sitemap.xml if it exists
9899
run: |
99100
if [ -f ./public/sitemap.xml ]; then
100-
chmod +w ./public/sitemap.xml
101+
rm -rf ./public/sitemap.xml
101102
fi
102103
103104
- name: Build the site

0 commit comments

Comments
 (0)