-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (53 loc) · 1.95 KB
/
Copy pathno-xquare.yml
File metadata and controls
70 lines (53 loc) · 1.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: EntryDSM Cloudflare Pages Deploy
on:
push:
branches: ["develop"]
jobs:
build-and-deploy:
runs-on: macos-latest
env:
NX_CLOUD_ACCESS_TOKEN: ""
NX_SKIP_NX_CACHE: true
VITE_BASE_URL: https://api.entrydsm.kr
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build entry-user
run: yarn nx build entry-user
- name: Build entry-admin
run: yarn nx build entry-admin
- name: Build entry-auth
run: yarn nx build entry-auth
- name: Build admission-lts
run: yarn nx build admission-lts
- name: Setup Cloudflare Wrangler
run: npm install -g wrangler
- name: Deploy entry-user to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: wrangler pages deploy apps/entry-user/dist --project-name=entry-user
- name: Deploy entry-admin to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: wrangler pages deploy apps/entry-admin/dist --project-name=entry-admin
- name: Deploy entry-auth to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: wrangler pages deploy apps/entry-auth/dist --project-name=entry-auth
- name: Deploy admission-lts to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: wrangler pages deploy apps/admission-lts/dist --project-name=entry-admission
- name: Deployment success notification
if: success()
run: echo "✅ 모든 배포 완료"
- name: Deployment failure notification
if: failure()
run: echo "❌ 배포 실패"