-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update document workflow to use custom DocGenerator
- Loading branch information
1 parent
05ff379
commit eb466c1
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,20 +38,17 @@ jobs: | |
- name: Install Jazzy | ||
run: gem install jazzy | ||
|
||
- name: Build Swift docs | ||
- name: Install Doc Generator | ||
run: | | ||
sourcekitten doc --spm --module-name ${{ github.event.repository.name }} > swiftDoc.json | ||
- name: Build ObjC docs | ||
run: | | ||
sourcekitten doc --objc $(pwd)/Sources/${{ github.event.repository.name }}ObjC/include/${{ github.event.repository.name }}ObjC.h \ | ||
-- -x objective-c -isysroot $(xcrun --show-sdk-path --sdk iphonesimulator) \ | ||
-I $(pwd) -fmodules > objcDoc.json | ||
- name: Get Jazzy | ||
run: | | ||
jazzy --sourcekitten-sourcefile objcDoc.json,swiftDoc.json | ||
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: | ||
|