Skip to content

Update README.md

Update README.md #20

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [master, main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: |
site/package-lock.json
site/npm-shrinkwrap.json
site/package.json
- name: Setup Pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Check docs writing style
run: python3 scripts/check_docs_style.py
- name: Install dependencies
working-directory: site
run: |
if [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]; then
npm ci
else
npm install --no-audit --no-fund
fi
- name: Build docs
working-directory: site
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4