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 ccaa5e5 commit f7a059f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=iOS Simulator
run: |
xcodebuild docbuild -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" -derivedDataPath derivedData | xcpretty;
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;
xcodebuild docbuild -workspace "${workspace}" -scheme "${scheme}" -derivedDataPath derivedData | xcpretty
- name: Perpare Docs for deployment
run: |
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
with:
Expand Down

0 comments on commit f7a059f

Please sign in to comment.