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 01fb22d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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,19 @@ 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/ .

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

Expand Down

0 comments on commit 01fb22d

Please sign in to comment.