From 55ae407e915bb78714512d6b81523778bc065818 Mon Sep 17 00:00:00 2001 From: Loay Ashraf Date: Thu, 5 Oct 2023 21:43:10 +0300 Subject: [PATCH] Update build-deploy-docs.yml --- .github/workflows/build-deploy-docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy-docs.yml b/.github/workflows/build-deploy-docs.yml index 2a61d1a..a229974 100644 --- a/.github/workflows/build-deploy-docs.yml +++ b/.github/workflows/build-deploy-docs.yml @@ -35,9 +35,10 @@ jobs: destination: generic/platform=iOS Simulator run: | xcodebuild docbuild -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" -derivedDataPath derivedData | xcpretty; - cd derivedData - ls - $(xcrun --find docc) process-archive transform-for-static-hosting derivedData/Build/Products/Debug-iphoneos/RxNetworkKit.doccarchive --hosting-base-path RxNetworkKit --output-path docs; + echo "Copying DocC archives to docArchives..."; + mkdir docArchives; + cp -R `find derivedData -type d -name "*.doccarchive"` docArchives; + $(xcrun --find docc) process-archive transform-for-static-hosting docArchives/RxNetworkKit.doccarchive --hosting-base-path RxNetworkKit --output-path docs; echo "" > docs/index.html; - name: Upload artifact uses: actions/upload-pages-artifact@v1