Skip to content

Commit a0e8f4d

Browse files
committed
Add GitHub Actions workflow to deploy docs to Cloudflare Workers
1 parent bd0e9bf commit a0e8f4d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Cond8 Docs Worker
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: 📦 Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: 📐 Set up Node + pnpm
17+
uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
20+
21+
- name: 🧰 Install dependencies
22+
run: pnpm install
23+
24+
- name: 🛠️ Build docs
25+
run: pnpm run build
26+
27+
- name: 🚀 Deploy to Cloudflare Workers
28+
run: pnpm exec wrangler deploy
29+
env:
30+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)