remove: unused PictureData (#20) #15
This file contains 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: docc | |
on: | |
push: | |
branches: ["main"] | |
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-13 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: git checkout | |
uses: actions/checkout@v3 | |
- name: docbuild | |
run: | | |
xcodebuild docbuild -scheme Picture \ | |
-derivedDataPath /tmp/docbuild \ | |
-destination 'generic/platform=iOS'; | |
$(xcrun --find docc) process-archive \ | |
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Picture.doccarchive \ | |
--hosting-base-path Picture \ | |
--output-path docs; | |
echo "<script>window.location.href += \"/documentation/picture\"</script>" > docs/index.html; | |
- name: artifacts | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "docs" | |
- name: deploy | |
id: deployment | |
uses: actions/deploy-pages@v1 |