-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.49 KB
/
Copy pathdocs.yml
File metadata and controls
50 lines (47 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Update Docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'apps/docs/**'
- 'apps/playground/**'
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 docs --filter playground
- name: 🧪 Run Tests
run: pnpm test:coverage
- 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