mirror of
https://github.com/henry4682/fin_buddy_fe.git
synced 2026-07-16 01:30:00 +00:00
fix: change config
All checks were successful
Deploy Frontend to 1Panel / build-and-deploy (push) Successful in 36s
All checks were successful
Deploy Frontend to 1Panel / build-and-deploy (push) Successful in 36s
This commit is contained in:
@@ -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/
|
||||
Reference in New Issue
Block a user