Skip to content

Commit 19fd829

Browse files
committed
modify: Enhance build step in GitHub Actions workflow for Cloudflare Pages
1 parent aa6e513 commit 19fd829

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Build
21-
run: cd my-app && npm i && npm run build
21+
run: |
22+
cd my-app
23+
npm i
24+
npm run build
25+
# 建立一個中轉目錄來存放 /2024 結構
26+
mkdir -p deploy/2024
27+
cp -r build/* deploy/2024/
2228
2329
- name: Deploy to Cloudflare Pages
2430
uses: cloudflare/pages-action@v1

0 commit comments

Comments
 (0)