Skip to content

Commit

Permalink
Update build-deploy-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
loay-ashraf committed Oct 5, 2023
1 parent 609ab04 commit 55ae407
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<script>window.location.href += \"/documentation/mypackage\"</script>" > docs/index.html;
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit 55ae407

Please sign in to comment.