language: ruby
sudo: false
cache: bundler
rvm:
  - 2.6.3
before_install:
  - gem update --system
  - gem install bundler
script:
  - rm -rf _site
  - bundle exec jekyll build
branches:
  only:
    - master
deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep-history: true
  local-dir: _site
  target-branch: gh-pages
  on:
    branch: master

language: ruby
cache: bundler
rvm:
  - 2.6.3
addons:
  apt:
    packages:
      - openjdk-8-jre
before_install:
  - gem update --system
  - gem install bundler
install:
  - bundle install --jobs=3 --retry=3
  - pip install --user html5validator
script:
  - bundle exec jekyll clean && bundle exec jekyll build
  - html5validator --Werror --also-check-css --also-check-svg --root _site/
branches:
  only:
    - master
deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep-history: true
  local-dir: _site
  target-branch: gh-pages
  on:
    branch: master

Validate HTML, CSS, SVG files with html5validator
Validate HTML, CSS, SVG files with html5validator
