Skip to content

Commit

Permalink
ci: Add github action to check links
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed May 14, 2024
1 parent 061ecae commit 9571285
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/deploy-hugo-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run on pushes to the default branch
push:
branches:
- main
- ci/add_pre_commit_hook
# Add an option to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -26,7 +26,21 @@ defaults:
shell: bash

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --no-progress --include-fragments --exclude-path ./themes/ --exclude-path ./layouts/ .
# Don't fail action on broken links
fail: true

build-and-deploy:
needs: check-links
runs-on: ubuntu-latest
steps:

Expand Down

0 comments on commit 9571285

Please sign in to comment.