-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (37 loc) · 1015 Bytes
/
verify.yml
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
35
36
37
38
39
name: Markdown
on:
pull_request:
branches:
- main
paths:
- '**/*.md'
jobs:
markdown-lint: # call reusable workflow from central '.github' repo
uses: open-component-model/.github/.github/workflows/markdown.yml@main
secrets: inherit
with:
md-lint: .github/config/markdownlint.yml
md-ignore: .github/config/markdownignore
spellcheck: .github/config/spellcheck.yml
verify-links:
name: Verify HTML links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 20
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
- name: Install Dependencies
run: npm install
- name: Build Site
run: npm run build
- name: Verify HTML links
uses: untitaker/[email protected]
with:
args: public/ --sources content/