-
Notifications
You must be signed in to change notification settings - Fork 375
35 lines (33 loc) · 921 Bytes
/
deploy_docs.yml
File metadata and controls
35 lines (33 loc) · 921 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
---
name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ruby
bundler-cache: true
- name: Install yard
run: gem install yard
- name: Install redcarpet
run: gem install redcarpet
- name: Build docs
run: yard
- name: Configure CNAME
run: echo "ruby-jwt.org" > ./doc/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc