-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 787 Bytes
/
docs.yml
File metadata and controls
38 lines (32 loc) · 787 Bytes
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
name: Publish Docs
on:
push:
branches: [ main ]
jobs:
docs:
runs-on: macos-latest
strategy:
matrix:
xcode:
- 11.5
steps:
- uses: actions/checkout@v2
- name: Cache gems
uses: actions/cache@preview
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Gems
run: |
bundle config path vendor/bundle
bundle config with docs
bundle install
- name: Generate documentation
run: make docs
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs