-
Notifications
You must be signed in to change notification settings - Fork 135
36 lines (31 loc) · 1.06 KB
/
build-site.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
name: Build and Jekyll site and run htmlproofer
on:
push:
branches:
- '*'
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- name: Use cache to shorten build time
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build Jekyll site
uses: helaili/jekyll-action@v2
with:
build_only: true
jekyll_build_options: -d _site
- name: Check HTML using htmlproofer
uses: chabad360/htmlproofer@master
with:
directory: '_site'
# The directory to scan
arguments: --url-swap "https\:\/\/www\.earthdatascience\.org\/images:/images" --file-ignore /example-leaflet-maps/ --http-status-ignore "301"
# The arguments to pass to HTMLProofer