From eb466c11768bb6a7669450df97de615903aec8ef Mon Sep 17 00:00:00 2001 From: Erik Terwan Date: Fri, 1 Apr 2022 14:03:42 +0200 Subject: [PATCH] Update document workflow to use custom DocGenerator --- .github/workflows/document.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml index b2954b6..b1bb669 100644 --- a/.github/workflows/document.yml +++ b/.github/workflows/document.yml @@ -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/github-pages-deploy-action@v4.2.5 with: