Skip to content

dpid publication

dpid publication #82

Workflow file for this run

name: "Build and Lint Site"
on:
push:
branches: [ "main"]
pull_request:
branches: [ "main" ]
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# dependencies
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
- uses: actions/setup-node@v4
with:
node-version: '19'
- name: Install dependencies
working-directory: ./docs
run: |
sudo apt-get install -y build-essential zlib1g-dev
gem install bundler
bundle config path vendor/bundle
bundle install
- name: Build the site
working-directory: ./docs
run: bundle exec jekyll build --strict_front_matter
- name: Validate all links, enforce alt text
working-directory: ./docs
run: |
bundle exec htmlproofer \
--ignore-files "/.*\/ro-crate-preview\.html/","/.*\/examples\/.*\/index\.html/" \
--disable-external true \
--enforce-https false \
./_site
- name: Ensure no unexpected encoded HTML in output
working-directory: ./docs
run: |
! fgrep -R 'lt;blockquote' _site
- name: Ensure no unexpected jekyll in output
working-directory: ./docs
run: |
! fgrep -R 'site.pages' _site