-
Notifications
You must be signed in to change notification settings - Fork 111
54 lines (47 loc) · 1.32 KB
/
deploy-web-staging.yml
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
53
54
name: Deploy Web To Staging
on:
push:
branches:
- main
paths-ignore:
- 'apps/api/**'
- 'apps/extension/**'
- 'packages/skill-template/**'
workflow_dispatch:
jobs:
deploy:
name: Deploy Web
runs-on: ubuntu-latest
if: github.repository == 'refly-ai/refly'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:web
env:
NODE_OPTIONS: '--max_old_space_size=8192'
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
VITE_API_URL: https://staging-api.refly.ai
VITE_COLLAB_URL: https://staging-collab.refly.ai
- name: Deploy web to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: refly-app-staging
branch: main
workingDirectory: apps/web
directory: dist