-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.34 KB
/
docs-build.yml
File metadata and controls
53 lines (45 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build docs
permissions: {}
on:
workflow_call: {}
jobs:
build-docs:
name: jekyll github pages build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup ruby
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
with:
ruby-version: '3.3'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
working-directory: ./docs
- name: Setup pages
id: pages
uses: actions/configure-pages@v6
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "$PAGES_PATH"
working-directory: ./docs
env:
PAGES_PATH: ${{ steps.pages.outputs.base_path }}
- name: Check links
run: |
bundle exec htmlproofer \
--disable-external \
--assume_extension '.html' \
--swap-urls "^${PAGES_PATH}/:/" \
./_site
working-directory: ./docs
env:
PAGES_PATH: ${{ steps.pages.outputs.base_path }}
- name: Upload site assets as artifact
id: deployment
uses: actions/upload-pages-artifact@v5
with:
path: ./docs/_site