Skip to content

Commit

Permalink
Update docc.yml (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Aug 7, 2024
1 parent 8ce1ee1 commit f9b628c
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: docc
on:
push:
branches: ["main"]
branches: ["main"]
permissions:
contents: read
pages: write
Expand All @@ -11,26 +11,26 @@ concurrency:
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 Later \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Later.doccarchive \
--output-path docs;
echo "<script>window.location.href += \"/documentation/later\"</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 Later \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Later.doccarchive \
--output-path docs;
echo "<script>window.location.href += \"/documentation/later\"</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 f9b628c

Please sign in to comment.