Skip to content

Commit 21ca148

Browse files
committed
2 parents 1f3b8dc + 774c7e8 commit 21ca148

1 file changed

Lines changed: 11 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,21 @@ jobs:
1212

1313
- uses: actions/setup-java@v4
1414
with:
15-
distribution: 'temurin'
15+
distribution: temurin
1616
java-version: '21'
1717

1818
- uses: gradle/actions/setup-gradle@v3
1919

20-
- name: Build CMP Web (WASM)
21-
run: ./gradlew :composeApp:wasmJsBrowserDistribution
22-
23-
- name: Prepare public folder
24-
run: |
25-
rm -rf public
26-
mkdir -p public
27-
cp -R composeApp/build/dist/wasmJs/productionExecutable/* public/
28-
if [ -f vercel.json ]; then cp vercel.json public/; fi
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
- run: npm i -g vercel
2924

30-
- name: Install Vercel CLI
31-
run: npm i -g vercel
25+
# Vercel 프로젝트/환경 끌어오기
26+
- run: vercel pull --yes --environment=production --token ${{ secrets.VERCEL_TOKEN }}
3227

33-
- name: Pull env (prod)
34-
run: vercel pull --yes --environment=production --token ${{ secrets.VERCEL_TOKEN }}
28+
# vercel.json의 buildCommand/outputDirectory로 로컬 빌드
29+
- run: vercel build --prod --token ${{ secrets.VERCEL_TOKEN }}
3530

36-
- name: Deploy (prod)
37-
run: vercel deploy public --prod --yes --token ${{ secrets.VERCEL_TOKEN }}
31+
# 사전빌드물 배포
32+
- run: vercel deploy --prebuilt --prod --yes --token ${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)