Repository navigation
fix: Sendable conformance. #11
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
| # SPDX-FileCopyrightText: Nextcloud GmbH | |
| # SPDX-FileCopyrightText: 2025 Iva Horn | |
| # SPDX-License-Identifier: LGPL-3.0-or-later | |
| name: Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| Build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - uses: actions/checkout@v4 | |
| - name: Build documentation | |
| run: | | |
| xcodebuild docbuild \ | |
| -scheme NextcloudCapabilitiesKit \ | |
| -destination 'platform=macOS' \ | |
| -skipPackagePluginValidation \ | |
| -derivedDataPath ./DerivedData | |
| $(xcrun --find docc) process-archive \ | |
| transform-for-static-hosting ./DerivedData/Build/Products/Debug/NextcloudCapabilitiesKit.doccarchive \ | |
| --output-path ./docs \ | |
| --hosting-base-path /NextcloudCapabilitiesKit | |
| - name: Create root redirect | |
| run: | | |
| cat > ./docs/index.html << 'EOF' | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>NextcloudCapabilitiesKit Documentation</title> | |
| <meta http-equiv="refresh" content="0; url=./documentation/nextcloudcapabilitieskit/"> | |
| <link rel="canonical" href="./documentation/nextcloudcapabilitieskit/"> | |
| </head> | |
| <body> | |
| <p>Redirecting to <a href="./documentation/nextcloudcapabilitieskit/">NextcloudCapabilitiesKit Documentation</a>...</p> | |
| <script> | |
| window.location.href = "./documentation/nextcloudcapabilitieskit/"; | |
| </script> | |
| </body> | |
| </html> | |
| EOF | |
| - name: Upload static files as artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./docs | |
| Deploy: # See: https://github.com/actions/deploy-pages | |
| needs: Build | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |