Skip to content

Commit

Permalink
Use docbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPelaez committed Dec 25, 2024
1 parent e6113c8 commit 2a68511
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@ jobs:
- name: Set Up GitHub Pages
uses: actions/configure-pages@v3
- name: Build Documentation
uses: fwcd/swift-docc-action@v1
with:
target: HierarchyResponder
output: build
transform-for-static-hosting: 'true'
disable-indexing: 'true'
hosting-base-path: public
run: |
xcodebuild docbuild \
-scheme HierarchyResponder \
-derivedDataPath ./build \
-destination 'generic/platform=iOS';
mkdir public;
$(xcrun --find docc) process-archive \
transform-for-static-hosting ./build/Build/Products/Debug-iphoneos/HierarchyResponder.doccarchive \
--hosting-base-path HierarchyResponder \
--output-path ./public;
- name: Create index.html
run: |
echo "<script>window.location.href += \"/documentation/hierarchyresponder\"</script>" > public/index.html;
echo "<script>window.location.href += \"/documentation/hierarchyresponder\"</script>" > ./public/index.html;
- name: Upload Documentation Artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 2a68511

Please sign in to comment.