Skip to content

feat: VitePress documentation site with SAP Fiori styling (#15) #1

feat: VitePress documentation site with SAP Fiori styling (#15)

feat: VitePress documentation site with SAP Fiori styling (#15) #1

Workflow file for this run

name: Deploy docs to GitHub Pages
on:
push:
branches: [main]
paths:
- 'docs-site/**'
- 'docs/**'
- '.github/workflows/docs.yml'
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: docs-site/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: docs-site
- name: Copy content
run: node scripts/copy-content.js
working-directory: docs-site
- name: Build VitePress site
run: npm run build
working-directory: docs-site
- uses: actions/upload-pages-artifact@v3
with:
path: docs-site/.vitepress/dist
- uses: actions/deploy-pages@v4
id: deployment