Skip to content

Commit b6ec05c

Browse files
authored
ci: Add manual docs publish workflow (#1701)
1 parent 2eb2764 commit b6ec05c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: release-manual-docs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
default: ''
7+
description: 'Version tag:'
8+
env:
9+
CI_XCODE_13: '/Applications/Xcode_13.4.1.app/Contents/Developer'
10+
11+
jobs:
12+
publish-docs:
13+
if: github.event.inputs.tag != ''
14+
runs-on: macos-11
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.event.inputs.tag }}
20+
- name: Cache Gems
21+
id: cache-gems
22+
uses: actions/cache@v2
23+
with:
24+
path: vendor/bundle
25+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-gem-
28+
- name: Install Bundle
29+
run: |
30+
bundle config path vendor/bundle
31+
bundle install
32+
- name: Create Jazzy Docs
33+
run: |
34+
./Scripts/jazzy.sh
35+
env:
36+
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
37+
- name: Deploy Jazzy Docs
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./docs

0 commit comments

Comments
 (0)