Skip to content

Commit 23a9287

Browse files
authored
Merge pull request #7 from cltk/v2-update
add fix for page build
2 parents c7c6067 + 3f055f6 commit 23a9287

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: HTMLProofer (links)
2+
3+
on:
4+
pull_request:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.2'
18+
bundler-cache: true
19+
20+
- name: Build site
21+
run: |
22+
bundle install --jobs 4 --retry 3
23+
bundle exec jekyll build --trace
24+
25+
- name: Run HTMLProofer
26+
run: |
27+
bundle exec htmlproofer ./_site \
28+
--disable-external \
29+
--enforce_https \
30+
--check_html \
31+
--check_favicon
32+

.github/workflows/pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: Setup Pages
2424
uses: actions/configure-pages@v5
25-
- name: Build with Jekyll
26-
uses: actions/jekyll-build@v1
25+
- name: Build with Jekyll for Pages
26+
uses: actions/jekyll-build-pages@v1
2727
with:
2828
source: ./
2929
destination: ./_site
@@ -42,4 +42,3 @@ jobs:
4242
- name: Deploy to GitHub Pages
4343
id: deployment
4444
uses: actions/deploy-pages@v4
45-

0 commit comments

Comments
 (0)