Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 030be40

Browse files
committed
Generate and deploy rdoc on GH pages using GH workflow
1 parent 773315c commit 030be40

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Github Pages (rdoc)
2+
on: [push]
3+
jobs:
4+
build-and-deploy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout 🛎️
8+
uses: actions/checkout@master
9+
10+
- name: Set up Ruby 💎
11+
uses: ruby/setup-ruby@v1
12+
with:
13+
bundler-cache: true
14+
ruby-version: '3.1'
15+
16+
- name: Install rdoc and generate docs 🔧
17+
run: |
18+
gem install rdoc
19+
rdoc --op rdocs
20+
21+
- name: Deploy 🚀
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./rdocs

0 commit comments

Comments
 (0)