mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-25 01:32:21 +00:00
Build documentation with Jekyll on CI (#8504)
This commit is contained in:

committed by
GitHub

parent
bed09ae851
commit
f3d8a05ceb
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user