-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (36 loc) · 1.03 KB
/
github-pages-workflow.yml
File metadata and controls
44 lines (36 loc) · 1.03 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
42
43
44
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- master
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Ruby setup
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Get cached gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle setup
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Build and deploy
run: bundle exec jekyll build
- name: Cache HTMLProofer
id: cache-htmlproofer
uses: actions/cache@v4
with:
path: tmp/.htmlproofer
key: ${{ runner.os }}-htmlproofer
- name: Check HTML
run: bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html