Skip to content

Commit

Permalink
run site and check that way
Browse files Browse the repository at this point in the history
lychee-action failed on all relative links
  • Loading branch information
asmacdo committed Dec 19, 2024
1 parent a8f2325 commit 05d1372
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ jobs:
# - name: Install Theme
# run: |
# git clone https://github.com/username/your-hugo-theme.git themes/your-hugo-theme
- name: Install Requirements
run: |
pip install linkchecker
- name: Build Hugo Site
run: hugo --minify
- name: Start server
run: hugo server

# Run the link checker on the generated site
- name: Check Links
uses: lycheeverse/lychee-action@v2
- name: Check links
run: |
linkchecker --check-extern -f .linkcheckerrc -t 1 http://localhost:8000

0 comments on commit 05d1372

Please sign in to comment.