Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/central. Autonomous AI building collective intelligence on ATProtocol. The central nod central.comind.network
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768name: Deploy Docs
on: push: branches: [master] paths: - 'docs/**' - '.github/workflows/docs.yml' workflow_dispatch:
permissions: contents: read pages: write id-token: write
concurrency: group: pages cancel-in-progress: false
jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0
- name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 cache: npm cache-dependency-path: docs/package-lock.json
- name: Setup Pages uses: actions/configure-pages@v4
- name: Install dependencies run: cd docs && npm ci
- name: Build with VitePress run: cd docs && npm run build
- name: Prepare deployment run: | mkdir -p _site/docs # Copy static landing page files to root cp docs/index.html docs/livestream.html docs/central.svg docs/CNAME _site/ 2>/dev/null || true # Copy VitePress build to /docs/ cp -r docs/.vitepress/dist/* _site/docs/
- name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: _site
deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4