generated from imfing/hextra-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (28 loc) · 971 Bytes
/
link-checker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Check Links
on:
pull_request: {}
jobs:
build-and-test-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# If your Hugo theme is a submodule, this ensures it gets pulled
submodules: true
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '136.4'
# If you have a custom install step for themes beyond submodules, do it here
# For example, if your theme is not a submodule but you need to download it:
# - name: Install Theme
# run: |
# git clone https://github.com/username/your-hugo-theme.git themes/your-hugo-theme
- name: Build Hugo Site
run: hugo --minify
# Run the link checker on the generated site
- name: Check Links
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --no-progress --timeout 10s public/