Skip to content

Commit

Permalink
Update docc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Jun 2, 2023
1 parent 66e80d7 commit 945d124
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
name: docc
on:
'on':
push:
branches: ["main"]
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
group: pages
cancel-in-progress: true
jobs:
pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-12
steps:
- name: git checkout
uses: actions/checkout@v3
- name: docbuild
run: |
xcodebuild docbuild -scheme Waiter \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Waiter.doccarchive \
--hosting-base-path Waiter \
--output-path docs;
echo "<script>window.location.href += \"/documentation/waiter\"</script>" > docs/index.html;
- name: artifacts
uses: actions/upload-pages-artifact@v1
with:
path: 'docs'
- name: deploy
id: deployment
uses: actions/deploy-pages@v1
environment:
name: github-pages
url: '${{ steps.deployment.outputs.page_url }}'
runs-on: macos-12
steps:
- name: git checkout
uses: actions/checkout@v3
- name: docbuild
run: >
xcodebuild docbuild -scheme Waiter \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Waiter.doccarchive \
--hosting-base-path Waiter \
--output-path docs;
echo "<script>window.location.href +=
\"/documentation/waiter\"</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 945d124

Please sign in to comment.