Repository navigation
docs: add a documentation #18
Workflow file for this run
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 Documentation | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Documentation version' | |
| required: false | |
| default: latest' | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Get Version | |
| id: version | |
| run: | | |
| if [ -n "${{ github.event.inputs.version }}" ]; then | |
| VERSION="${{ github.event.inputs.version }}" | |
| else | |
| VERSION="latest" | |
| fi | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Building documentation for version: $VERSION" | |
| - name: Deploy DocC | |
| uses: ./.github/actions/build-docc | |
| with: | |
| schemes: '["ValidatorCore", "ValidatorUI"]' | |
| version: ${{ steps.version.outputs.version }} | |
| project-name: "Validator" | |
| project-description: "Comprehensive documentation for Swift validation framework" | |
| keep-old-versions: true | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| deploy: true |