-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.19 KB
/
deploy-web.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
name: Web Deployment
on:
push:
branches:
- 'main'
paths:
- 'apps/web/**'
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
- run: bun run build --filter=web
- run: |
echo "{\"VITE_API_URL\": \"$VITE_API_URL\"}" > secrets.json
- name: Upload secrets
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages secret bulk secrets.json --project-name=instant-postgres
wranglerVersion: 3.58.0
- name: Deploy
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: instant-postgres
directory: build/client
workingDirectory: ./apps/web
deploymentName: web
branch: main