fix: change config
All checks were successful
Deploy Frontend to 1Panel / build-and-deploy (push) Successful in 36s

This commit is contained in:
2026-06-26 00:18:33 +08:00
parent 280dd5c3ec
commit 630042a935

View File

@@ -23,10 +23,8 @@ jobs:
- name: Build Project
run: npm run build # 🎯 編譯出 dist 資料夾
- name: Copy Files via Docker Volume Mount
run: |
# 用一個帶有掛載的臨時小容器,把目前工作區的 dist直接同步到主機實體的 1Panel 目錄下
docker run --rm \
-v $(pwd)/dist:/src_dist \
-v /www/sites/fin-buddy.duckdns.org:/target_site \
alpine sh -c "mkdir -p /target_site/index && cp -r /src_dist/* /target_site/index/ && chmod -R 755 /target_site/index"
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: frontend-dist
path: dist/