Skip to content

Commit 9a7f11f

Browse files
committed
feat: replace hugo server with python http server
1 parent f639974 commit 9a7f11f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/cron-check-int-links.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737
- name: Install broken-link-checker
3838
run: npm install broken-link-checker
3939

40-
- name: Start Hugo server
40+
- name: Build Hugo site
41+
run: hugo
42+
43+
- name: Start local server
4144
run: |
42-
hugo server --quiet --port 1313 >/dev/null 2>&1 &
43-
until curl -fs http://localhost:1313/ >/dev/null 2>&1; do
44-
sleep 0.2
45-
done
46-
echo "✅ Hugo preview server is ready at http://localhost:1313"
45+
python3 -m http.server 1313 --directory public >/dev/null 2>&1 &
46+
until curl -fs http://localhost:1313 >/dev/null 2>&1; do sleep 0.2; done
47+
echo "✅ Python preview server is ready at http://localhost:1313"
4748
4849
- name: Check internal links
4950
id: linkcheck

0 commit comments

Comments
 (0)