Skip to content

Commit

Permalink
Remove variables from DocC workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Mar 5, 2024
1 parent 819b0ad commit cb5ea1d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ name: DocC Runner
on:
push:
branches: ["main"]

env:
LIB_NAME: RichTextKit
DOC_PATH: richtextkit

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -43,14 +39,14 @@ jobs:
run: |
swift package resolve;
xcodebuild docbuild -scheme $LIB_NAME -derivedDataPath /tmp/docbuild -destination 'generic/platform=iOS';
xcodebuild docbuild -scheme RichTextKit -derivedDataPath /tmp/docbuild -destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/$LIB_NAME.doccarchive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/RichTextKit.doccarchive \
--output-path docs \
--hosting-base-path '$LIB_NAME';
--hosting-base-path 'RichTextKit';
echo "<script>window.location.href += \"/documentation/$DOC_PATH\"</script>" > docs/index.html;
echo "<script>window.location.href += \"/documentation/richtextkit\"</script>" > docs/index.html;
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit cb5ea1d

Please sign in to comment.