avoid plural on folder names #29
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
#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 |