Restructure and deploy #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |