Skip to content

Commit f57690c

Browse files
committed
Deploy preview docs on pull request
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
1 parent 956ff07 commit f57690c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Preview Docs on Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
env:
8+
RUBY_VERSION: 3.1.4
9+
10+
concurrency:
11+
group: preview-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
deploy-preview:
16+
runs-on: ubuntu-latest
17+
if: "!contains(github.event.head_commit.message, 'ci skip')"
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ env.RUBY_VERSION }}
25+
bundler-cache: true
26+
27+
- name: Build YARD docs
28+
run: bin/yardoc
29+
30+
- name: Deploy preview
31+
uses: rossjrw/pr-preview-action@v1
32+
with:
33+
source-dir: ./docs/yard/

0 commit comments

Comments
 (0)