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 27aa3ab commit 057683e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ jobs:
scheme: RxNetworkKit
destination: generic/platform=iOS Simulator
run: |
xcodebuild docbuild -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" -derivedDataPath derivedData | xcpretty && exit ${PIPESTATUS[0]};
xcodebuild docbuild -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" -derivedDataPath derivedData | xcpretty;
$(xcrun --find docc) process-archive transform-for-static-hosting derivedData/Build/Products/Debug-iphoneos/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:
path: 'docs'
run: |
ls
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 057683e

Please sign in to comment.