Skip to content

Commit ab8ceeb

Browse files
committed
Add GitHub Actions workflow for documentation generation and publishing
1 parent d25b24b commit ab8ceeb

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: ruby
17+
- name: Generate document
18+
run: gem install -N yard && yard doc
19+
- name: Publish Documentation on GitHub Pages
20+
uses: peaceiris/actions-gh-pages@v4
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./doc

0 commit comments

Comments
 (0)