Skip to content

Add documentation (#35) #1

Add documentation (#35)

Add documentation (#35) #1

Workflow file for this run

name: Documentation
on:
push:
branches: [ master, main ]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docs:
name: Build Documentation
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "6.1"
- name: Build Documentation
run: make docs-generate
- name: Check Documentation Quality
run: |
make docs-check-coverage
make docs-check-links
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .build/documentation
deploy:
name: Deploy to GitHub Pages
needs: build-docs
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4