Skip to content

Speed up short key hashing #386

Speed up short key hashing

Speed up short key hashing #386

Workflow file for this run

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