Speed up short key hashing #386
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: Documentation | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-and-deploy-docs: | |
| name: Generate and Deploy | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Cache SwiftPM artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.swiftpm | |
| .build | |
| key: ${{ runner.os }}-swiftpm-${{ hashFiles('**/Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-swiftpm- | |
| - name: Generate documentation | |
| run: Scripts/generate-docs.sh | |
| - name: Deploy to GitHub Pages | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: | | |
| Scripts/deploy-docs.sh main |