-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (45 loc) · 1.47 KB
/
document.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
name: Document
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
document:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Wait for build to succeed
uses: fountainhead/[email protected]
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build iOS
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Wait for test to succeed
if: steps.wait-for-build.outputs.conclusion == 'success'
uses: fountainhead/[email protected]
id: wait-for-test
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Test iOS
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install Sourcekitten
if: steps.wait-for-test.outputs.conclusion == 'success'
run: brew install sourcekitten
- name: Install Jazzy
run: gem install jazzy
- name: Install Doc Generator
run: |
git clone https://github.com/mediamonks/MMMDocGenerator.git
cd MMMDocGenerator
swift build -c release
cd ../
cp MMMDocGenerator/.build/release/DocGenerator .
- name: Generate docs
run: ./DocGenerator -p ${{ github.event.repository.name }}
- name: Publish
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs