Skip to content

Commit

Permalink
Create docc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Apr 16, 2024
1 parent 7ded290 commit c9aa14e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: docc
on:
push:
branches: ["**"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
pages:
environment:
name: github-pages
url: '${{ steps.deployment.outputs.page_url }}'
runs-on: macos-13
steps:
- uses: swift-actions/setup-swift@v1
- name: git checkout
uses: actions/checkout@v3
- name: docbuild
run: >
sudo xcode-select -s /Applications/Xcode_15.0.app;
xcodebuild docbuild -scheme FeedbackKit \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/FeedbackKit.doccarchive \
--output-path docs \
--hosting-base-path 'FeedbackKit';
echo "<script>window.location.href +=
\"/documentation/feedbackkit\"</script>" > docs/index.html;
- name: artifacts
uses: actions/upload-pages-artifact@v1
with:
path: docs
- name: deploy
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit c9aa14e

Please sign in to comment.