Skip to content

chore: wiki reference #51

chore: wiki reference

chore: wiki reference #51

name: Deploy documentation
on:
push:
branches:
- main
workflow_dispatch:
permissions: read-all
jobs:
deploy-documentation:
name: Deploy documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
registry.npmjs.org:443
tuf-repo-cdn.sigstore.dev:443
- name: ⚙️ Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
persist-credentials: false
- name: ⚙️ Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- name: ⚙️ Install dependencies
run: npm clean-install
- name: 🔎 Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: ⚙️ Build
run: npm run docs:build
- name: 🚀 Push
uses: JamesIves/github-pages-deploy-action@ec9c88baef04b842ca6f0a132fd61c762aa6c1b0 # v4.6.0
with:
branch: gh-pages
folder: ./docs
token: ${{ secrets.GITHUB_TOKEN }}