-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 941 Bytes
/
deploy.yml
File metadata and controls
42 lines (35 loc) · 941 Bytes
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
name: Deploy to Cloudflare Pages
on:
push:
branches:
- main
paths:
- 'web/**'
workflow_dispatch:
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm ci
- name: Build
working-directory: web
run: npm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 38f9cd01dec7d1d1807eace23c4f00a4
projectName: agentcrew-landing
directory: web/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}