Skip to content

Commit d3030fc

Browse files
committed
Add a GitHub Action to validate we can build the site
This is mostly here as a placeholder to get CI working -- I'm going to be adding more validation shortly.
1 parent b7abd9c commit d3030fc

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/validate.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 2.7
21+
bundler-cache: true
22+
23+
- name: Build
24+
run: bundle exec rake build

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ task :submodules => ['_sass/brand/.git']
1919
task :dev => [:dependencies, :submodules] do
2020
sh('bundle exec jekyll serve --drafts --config _config.yml')
2121
end
22+
23+
task :build => [:dependencies, :submodules] do
24+
sh('bundle exec jekyll build --config _config.yml')
25+
end

0 commit comments

Comments
 (0)