Skip to content

Deploy capability matrix site #60

Deploy capability matrix site

Deploy capability matrix site #60

Workflow file for this run

name: Deploy capability matrix site
on:
push:
branches: [main]
paths:
- "capabilities/**"
- "schema/**"
- "scripts/capability-matrix/**"
- ".github/workflows/deploy-pages.yml"
schedule:
- cron: "0 2 * * *" # daily refresh to pick up SDK compliance updates
workflow_dispatch:
# Required for GitHub Pages OIDC deployment
permissions:
contents: read
pages: write
id-token: write
# Only one deploy at a time; don't cancel in-progress deploys
concurrency:
group: pages
cancel-in-progress: false
defaults:
run:
working-directory: scripts/capability-matrix
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "22"
- name: Install dependencies
run: npm ci
- name: Aggregate compliance data from SDK repos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run aggregate
- name: Build site
run: npm run build-site -- ../../site/compliance.json
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
# Uploads site/index.html (the matrix UI) and site/compliance.json
# (machine-readable compliance data, publicly queryable by external tools).
path: site/
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0