-
Notifications
You must be signed in to change notification settings - Fork 48
60 lines (48 loc) · 1.4 KB
/
generate-jazzy-docs.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Generate Jazzy Docs
#workflow_dispatch
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
generate-jazzy-docs:
name: Generate Docs
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426
with:
ruby-version: 3.2.2
- name: Install SourceKitten
run: |
brew install sourcekitten
- name: Install Jazzy
run: |
gem install jazzy
- name: Pod Install Frames
run: |
cd "iOS Example Frame"
pod install
- name: Pod Install Checkout
run: |
cd "Checkout/Samples/CocoapodsSample"
pod install
- name: Generate Docs
run: sh .github/scripts/buildDocs.sh
- name: Create Pull Request
env:
BRANCH_NAME: "update/jazzy-docs"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git branch $BRANCH_NAME
git checkout $BRANCH_NAME
git add .
git commit -m "Update jazzy docs"
git push -u origin $BRANCH_NAME
gh pr create -t "Update Jazzy Docs" -b "Automated Update for Jazzy Docs"