Build documentation with Jekyll on CI (#8504)

This commit is contained in:
Exequiel Ceasar Navarrete
2022-10-02 23:36:59 +08:00
committed by GitHub
parent bed09ae851
commit f3d8a05ceb
3 changed files with 20 additions and 1 deletions

View File

@ -4,6 +4,7 @@ permissions:
contents: read
env:
NODE_VERSION: 16
RUBY_VERSION: 3.1.2
jobs:
setup:
runs-on: ubuntu-latest
@ -79,6 +80,23 @@ jobs:
path: ./*
key: ${{ github.ref }}-${{ github.sha }}-build-release
build-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
working-directory: ./docs
- name: Run jekyll build
working-directory: ./docs
run: bundle exec jekyll build --strict_front_matter
lint:
needs: setup
runs-on: ubuntu-latest

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ Gemfile.lock
yarn.lock
*.log
.eslintcache
.jekyll-cache

View File

@ -1,4 +1,4 @@
exclude: [build, debug, node_modules, spec, src, CNAME, reference-tpl.html, CHANGELOG.md, README.md, LICENSE]
exclude: [build, debug, node_modules, spec, src, CNAME, reference-tpl.html, CHANGELOG.md, README.md, LICENSE, vendor/bundle, vendor/cache, vendor/gems, vendor/ruby]
markdown: kramdown