Skip to content

docs: formalize writing standard and homepage wording #10

docs: formalize writing standard and homepage wording

docs: formalize writing standard and homepage wording #10

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [master, main]
paths:
- 'site/**'
- 'docs/**'
- 'scripts/check_docs_style.py'
- '.github/workflows/deploy-docs.yml'
- 'README.md'
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
- 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: npm ci
- 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