Merge pull request #76 from cybozu/rename-OSView-to-PlatformView #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy DocC | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
- .gitignore | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-15 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build DocC | |
run: | | |
xcodebuild docbuild \ | |
-scheme WebUI \ | |
-destination "generic/platform=iOS" \ | |
-derivedDataPath DerivedData | |
$(xcrun --find docc) process-archive \ | |
transform-for-static-hosting DerivedData/Build/Products/Debug-*/WebUI.doccarchive \ | |
--output-path ./docs \ | |
--hosting-base-path "WebUI" | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: "https://cybozu.github.io/WebUI/documentation/webui/" | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |