-
Notifications
You must be signed in to change notification settings - Fork 35
41 lines (39 loc) · 1.33 KB
/
lint_jekyll.yaml
File metadata and controls
41 lines (39 loc) · 1.33 KB
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
40
41
name: Lint Jekyll site
on: [push, pull_request]
jobs:
check-internal-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1.308.0
with:
ruby-version: '3.3'
bundler-cache: true
cache-version: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v6
- name: Install dependencies
run: |
bundle install
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: |
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" --strict_front_matter
env:
PAGES_REPO_NWO: ${{ github.repository }}
JEKYLL_ENV: production
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JEKYLL_BUILD_BRANCH: ${{ github.ref_name }}
JEKYLL_BASE_PATH: ${{ steps.pages.outputs.base_path }}
#- name: Validate HTML and check links
# run: |
# bundle exec htmlproofer \
# --allow_missing_href=true \
# --ignore-urls "/.*localhost.*/","/.*gitter\.im.*/" \
# --enforce-https=false \
# --disable-external=true \
# --ignore_empty_alt=true \
# --ignore_missing_alt=true \
# --check-internal-hash=false \
# ./_site