-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.6 KB
/
Copy pathdocs.yml
File metadata and controls
52 lines (43 loc) · 1.6 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
51
52
name: Deploy Web
on:
push:
branches: [main]
paths:
- 'apps/web/**'
- 'packages/product-config/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'pnpm'
- name: Force HTTPS for GitHub git dependencies
run: git config --global 'url.https://github.com/.insteadOf' 'git@github.com:'
# Marketing site only needs @dripnex/web + product-config's transitive
# deps. Plain `pnpm install` would also run apps/desktop's postinstall
# (electron-builder install-app-deps -> better-sqlite3 native rebuild),
# which fails on the Linux + Node 22 runner. See #287 for the
# deploy-api workflow and #288 for release.yml — same fix shape.
- run: pnpm install --filter '@dripnex/web...' --ignore-scripts
- name: Build web app
working-directory: apps/web
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm exec fumadocs-mdx
pnpm exec next build
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
npx wrangler@3 pages project create dripnex-web --production-branch main 2>/dev/null || true
npx wrangler@3 pages deploy apps/web/out --project-name=dripnex-web --commit-dirty=true