Skip to content

Update macOS.yml

Update macOS.yml #22

Workflow file for this run

name: docc
on:
push:
branches: ["main"]

Check failure on line 4 in .github/workflows/docc.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docc.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
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-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