Skip to content

Inject algolia env on build #4

Inject algolia env on build

Inject algolia env on build #4

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
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_ORCHESTRATION_INDEX: ${{ secrets.ALGOLIA_ORCHESTRATION_INDEX }}
- 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