-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (46 loc) · 1.15 KB
/
documentation.yml
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
54
55
56
57
58
59
name: Documentation
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Documentation
runs-on: ubuntu-latest
container:
image: ruby:3.3-alpine
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apk add build-base cmake git tar
- name: Cache Gems
uses: actions/[email protected]
with:
path: vendor/bundle
key: Linux-3.3-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
Linux-3.3-gem-
- name: Install Gems
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build YARD documentation
run: bundle exec yard doc
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@main