Skip to content

Commit

Permalink
Update docc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Sep 27, 2024
1 parent 815d9f9 commit dfa7ca4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: docc
'on':
on:
push:
branches:
- main
branches: [ "main" ]
permissions:
contents: read
pages: write
Expand All @@ -15,18 +14,21 @@ jobs:
environment:
name: github-pages
url: '${{ steps.deployment.outputs.page_url }}'
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: swift-actions/setup-swift@v1
- name: git checkout
uses: actions/checkout@v3
- name: docbuild
run: >
sudo xcode-select -s /Applications/Xcode_16.0.app;
xcodebuild docbuild -scheme Cache \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Cache.doccarchive \
--output-path docs;
--output-path docs \
--hosting-base-path 'Cache';
echo "<script>window.location.href +=
\"/documentation/cache\"</script>" > docs/index.html;
- name: artifacts
Expand All @@ -36,4 +38,3 @@ jobs:
- name: deploy
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit dfa7ca4

Please sign in to comment.