diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml new file mode 100644 index 0000000..7bb84ef --- /dev/null +++ b/.github/workflows/docc.yml @@ -0,0 +1,40 @@ +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-latest + steps: + - uses: swift-actions/setup-swift@v1 + - name: git checkout + uses: actions/checkout@v3 + - name: docbuild + run: > + sudo xcode-select -s /Applications/Xcode_16.0.app; + xcodebuild docbuild -scheme Navigation \ + -derivedDataPath /tmp/docbuild \ + -destination 'generic/platform=iOS'; + $(xcrun --find docc) process-archive \ + transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Navigation.doccarchive \ + --output-path docs \ + --hosting-base-path 'Navigation'; + echo "" > docs/index.html; + - name: artifacts + uses: actions/upload-pages-artifact@v1 + with: + path: docs + - name: deploy + id: deployment + uses: actions/deploy-pages@v1