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

This commit is contained in:
2026-06-30 18:08:08 +08:00
parent d89cff698f
commit cec002bd4b

View File

@@ -31,9 +31,12 @@ jobs:
run: npm run build # 🎯 Vite 會在這裡讀取剛剛產生的 .env.production把網址寫死進去 run: npm run build # 🎯 Vite 會在這裡讀取剛剛產生的 .env.production把網址寫死進去
# 🎯 新增這步:把缺失的 netcat 裝回來 # 🎯 新增這步:把缺失的 netcat 裝回來
- name: Install Netcat - name: Deploy to 1Panel via SCP
run: sudo apt-get update && sudo apt-get install -y netcat-openbsd uses: appleboy/scp-action@v0.1.7
with:
- name: Stream Dist out of Container host: fin-buddy.duckdns.org
run: | username: ubuntu # 你的 Oracle SSH 登入帳號
tar -czf - -C dist . | nc -w 3 localhost 9999 || true key: ${{ secrets.SERVER_SSH_KEY }} # ⚠️ 需要去 Gitea 設定這把私鑰
source: "dist/*"
target: "/opt/1panel/apps/openresty/openresty/www/sites/fin-buddy.duckdns.org/index/"
strip_components: 1