Skip to content

Commit

Permalink
Update doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emrearmagan authored Jan 5, 2025
1 parent c72ef29 commit 7a9e4b9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ permissions:
pages: write
id-token: write

env:
SCHEME: ModalKit

# Allow one concurrent deployment
concurrency:
group: "pages"
Expand Down Expand Up @@ -39,20 +42,16 @@ jobs:
run: |
swift package resolve;
xcodebuild docbuild -scheme ModalKit -derivedDataPath /tmp/docbuild -destination 'generic/platform=iOS';
echo "Debugging build output...";
ls -R /tmp/docbuild/Build/Products/Debug-iphoneos;
xcodebuild docbuild -scheme $SCHEME -derivedDataPath /tmp/docbuild -destination 'generic/platform=iOS';
echo "Archiving documentation..."
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/ModalKit.doccarchive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/$SCHEME.doccarchive \
--output-path docs \
--hosting-base-path 'ModalKit';
--hosting-base-path '$SCHEME';
echo "** Archived documentation**"
echo "<script>window.location.href += \"/documentation/modalkit\"</script>" > docs/index.html;
echo "<script>window.location.href = '/documentation/$SCHEME'</script>" > docs/index.html;
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit 7a9e4b9

Please sign in to comment.