Skip to content

docs: reposition around ICP, use cases, and delivery guarantees (#59) #15

docs: reposition around ICP, use cases, and delivery guarantees (#59)

docs: reposition around ICP, use cases, and delivery guarantees (#59) #15

Workflow file for this run

name: Deploy VitePress site to Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
working-directory: docs/
run: npm ci
- name: Build with VitePress
working-directory: docs/
run: npm run build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist
path: docs/.vitepress/dist
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
deploy-netlify:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v4
with:
name: dist
path: docs/.vitepress/dist
- uses: nwtgck/actions-netlify@v3
with:
publish-dir: './docs/.vitepress/dist'
netlify-config-path: './netlify.toml'
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}