fix: change config
Some checks failed
Deploy Frontend to 1Panel / build-and-deploy (push) Failing after 18s

This commit is contained in:
2026-06-26 00:12:42 +08:00
parent b628e0b38b
commit 80fdd49b34

View File

@@ -23,14 +23,13 @@ jobs:
- name: Build Project - name: Build Project
run: npm run build # 🎯 編譯出 dist 資料夾 run: npm run build # 🎯 編譯出 dist 資料夾
- name: Deploy to Server via SSH - name: Copy Files to 1Panel Site Directory
uses: appleboy/scp-action@master run: |
with: # 1. 確保 1Panel 的目標目錄存在
host: ${{ secrets.SERVER_HOST }} sudo mkdir -p /www/sites/fin-buddy.duckdns.org/index/
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }} # 2. 直接把打包好的 dist 檔案暴力複製過去
port: 22 sudo cp -r dist/* /www/sites/fin-buddy.duckdns.org/index/
source: "dist/*"
# 🎯 筆直射進 1Panel 幫這個網域開闢的預設靜態網頁執行目錄 # 3. 修正檔案權限,確保 1Panel 的 Nginx 讀得到
target: "/www/sites/fin-buddy.duckdns.org/index/" sudo chmod -r 755 /www/sites/fin-buddy.duckdns.org/index/
strip_components: 1