Skip to content

feat(ci): update build docs & playground command #2

feat(ci): update build docs & playground command

feat(ci): update build docs & playground command #2

Workflow file for this run

name: Update Docs
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
document-deploy:
name: Document Deploy
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: 🛎 Checkout
uses: actions/checkout@v5
- name: 🏗 Setup PNPM
uses: pnpm/action-setup@v4
- name: 🏗 Setup NodeJS
uses: actions/setup-node@v4
with: { node-version-file: .node-version, cache: pnpm }
- name: 📦 Install dependencies
run: pnpm install
- name: 🏗 Build (Docs & Playground)
run: pnpm build --filter @cmdoss/docs --filter @cmdoss/playground
- name: 🚀 Publish 🌐 DOCS to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
workingDirectory: apps/docs
command: deploy
- name: 🚀 Publish 🌐 Playground to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
workingDirectory: apps/playground
command: deploy