This repository has been archived by the owner on Nov 16, 2024. It is now read-only.
update actions to use ruby 3.0 #100
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: check and build pull requests | |
on: | |
pull_request: [] | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Install GitHub Pages, Bundler, and kramdown gems | |
run: | | |
gem install bundler:2.4.22 yaml-lint | |
- name: Set up caching for Bundler | |
uses: actions/cache@v2 | |
with: | |
path: .vendor/bundle | |
key: gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
gems- | |
- name: Install & Update Ruby Gems | |
run: | | |
bundle config path .vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
bundle update | |
- name: Lint _config.yml with yaml-lint | |
run: | | |
yaml-lint _config.yml | |
- name: Lint pages and blog posts | |
run: | | |
yaml-lint -q -n $(find _posts -regex ".*.md\|.*html") &&\ | |
yaml-lint -q -n $(find pages -regex ".*.md\|.*html") | |
- name: Build site | |
run: make site |