# Builds the documentation portal (docs/, VitePress) and deploys it to GitHub Pages (https://udamir.github.io/api-smart-diff/). # Requires Settings > Pages > Source: GitHub Actions. name: Docs on: push: branches: [master] workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: pages cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 # lastUpdated timestamps - uses: voidzero-dev/setup-vp@v1.22.0 with: node-version: "24" cache: true - uses: actions/configure-pages@v6.0.0 - run: vp run docs:build - uses: actions/upload-pages-artifact@v5.0.0 with: path: docs/.vitepress/dist deploy: needs: build runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment uses: actions/deploy-pages@v5.0.1