Skip to content

preparing for delete - making sure nobody misses this #17

preparing for delete - making sure nobody misses this

preparing for delete - making sure nobody misses this #17

#this workflow will run the following steps:
# 1. make the _site data via bundle exec jekyll build command
# 2. run html proover on the _site data to check for broken links
name: Jekyll Build and HTML Proofer
on:
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Install Bundler
run: gem install bundler
- name: Install dependencies
run: bundle install
- name: install rake and html-proofer
run: gem install rake html-proofer
- name: Build the site
run: bundle exec jekyll build
- name: Run HTML Proofer
#ignore missing a hrefs
run: bundle exec htmlproofer --allow-hash-href --allow-missing-href --disable-external ./_site
id: htmlproofer
continue-on-error: true
- name: Check HTML Proofer Results
run: echo "${{ steps.htmlproofer.outputs.exitcode }}" | grep -q "0" || exit 1