Skip to content

Update README.md

Update README.md #96

Workflow file for this run

name: Deploy VitePress Documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Add permissions for GITHUB_TOKEN
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for git history
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: 'Web Docs/package-lock.json'
- name: Install dependencies
run: npm ci
working-directory: './Web Docs'
- name: Build documentation
run: npm run docs:build
working-directory: './Web Docs'
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v4
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: 'Web Docs/docs/.vitepress/dist'
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4