Add info on Policy Creator #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '2.7' | |
- name: Get cached gems | |
uses: actions/cache@v2 | |
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@v2 | |
with: | |
path: tmp/.htmlproofer | |
key: ${{ runner.os }}-htmlproofer | |
- name: Check HTML | |
run: bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html |