+40
.tangled/workflows/deploy.yaml
+40
.tangled/workflows/deploy.yaml
···
1
+
name: Deploy
2
+
3
+
on:
4
+
push:
5
+
branches: [main]
6
+
7
+
jobs:
8
+
deploy:
9
+
runs-on: ubuntu-latest
10
+
steps:
11
+
- uses: actions/checkout@v4
12
+
13
+
- uses: pnpm/action-setup@v4
14
+
with:
15
+
version: 9
16
+
17
+
- uses: actions/setup-node@v4
18
+
with:
19
+
node-version: '20'
20
+
cache: 'pnpm'
21
+
22
+
- name: Install dependencies
23
+
run: pnpm install
24
+
25
+
- name: Build website
26
+
run: pnpm run build
27
+
working-directory: ./packages/website
28
+
29
+
- name: Build playground
30
+
run: pnpm run build
31
+
working-directory: ./packages/playground
32
+
33
+
Deployment commands (commented out - uncomment when ready to deploy):
34
+
- name: Deploy playground
35
+
run: npx --yes wrangler pages deploy --branch main --project-name typelex-playground ./dist/
36
+
working-directory: ./packages/playground
37
+
38
+
- name: Deploy website
39
+
run: npx --yes wrangler pages deploy --branch main --project-name typelex ./dist/
40
+
working-directory: ./packages/website