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