Skip to content

Restructure and deploy #1

Restructure and deploy

Restructure and deploy #1

name: Build & Deploy Orchestration Docs
on:
push:
branches:
- master
paths:
- 'orchestration/**/*'
pull_request:
branches:
- master
paths:
- 'orchestration/**/*'
jobs:
deploy:
runs-on: ubuntu-latest
name: Build & Deploy
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install VitePress
run: npm install --dev
- name: Build Orchestration Docs
run: npm run orchestration:build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy orchestration/.vitepress/dist --project-name=orchestration