generated from ParadoxV5/template-ruby-gem
-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 950 Bytes
/
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
name: Generate Documentation with YARD
on:
push:
branches: [main]
paths:
- .github/workflows/documentation.yml
- .yardopts
- docs/**
- lib/**
- README.md
- Gemfile
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/configure-pages@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
bundler-cache: true
- name: Package YARD
run: bundle exec yard doc
- uses: actions/upload-pages-artifact@v3
with:
path: doc
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
permissions: write-all
runs-on: ubuntu-latest
steps:
- id: deploy-pages
uses: actions/deploy-pages@v4