Skip to content

Commit 8e0ce7d

Browse files
authored
CI: add jekyll build and html proofer (pyOpenSci#94)
1 parent 21cf057 commit 8e0ce7d

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/build-site.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Jekyll site and run htmlproofer
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
github-pages:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the code
13+
uses: actions/checkout@v2
14+
15+
# Use GitHub Actions' cache to shorten build times and decrease load on servers
16+
- name: Use cache to shorten build time
17+
uses: actions/cache@v1
18+
with:
19+
path: vendor/bundle
20+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
21+
restore-keys: |
22+
${{ runner.os }}-gems-
23+
24+
- name: Build Jekyll site
25+
uses: helaili/jekyll-action@v2
26+
with:
27+
build_only: true
28+
build_dir: _site
29+
30+
- name: all dirs
31+
run: |
32+
ls
33+
pwd
34+
35+
- name: Check HTML using htmlproofer
36+
uses: chabad360/htmlproofer@master
37+
with:
38+
directory: '_site'

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title_separator : "-"
2121
name : "pyOpenSci"
2222
description : "pyOpenSci's Website"
2323
url : "https://www.pyopensci.org/" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
24-
baseurl : # the subpath of your site, e.g. "/blog"
24+
baseurl : ""# the subpath of your site, e.g. "/blog"
2525
repository : "pyopensci/pyopensci.github.io" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
2626
teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png"
2727
logo : "/images/logo.png" # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png"

0 commit comments

Comments
 (0)