mirror of
https://github.com/henry4682/fin_buddy_fe.git
synced 2026-07-16 01:30:00 +00:00
All checks were successful
Deploy Frontend to 1Panel / build-and-deploy (push) Successful in 17s
28 lines
667 B
YAML
28 lines
667 B
YAML
name: Deploy Frontend to 1Panel
|
||
|
||
on:
|
||
push:
|
||
branches:
|
||
- main # 🎯 或者是 master,看你的預設分支是哪一個
|
||
|
||
jobs:
|
||
build-and-deploy:
|
||
runs-on: ubuntu-22.04
|
||
steps:
|
||
- name: Checkout Code
|
||
uses: actions/checkout@v3
|
||
|
||
- name: Setup Node.js
|
||
uses: actions/setup-node@v3
|
||
with:
|
||
node-version: 22 # 🎯 對齊你的 Node 版本
|
||
|
||
- name: Install Dependencies
|
||
run: npm install
|
||
|
||
- name: Build Project
|
||
run: npm run build # 🎯 編譯出 dist 資料夾
|
||
|
||
- name: Stream Dist out of Container
|
||
run: |
|
||
tar -czf - -C dist . | nc -w 3 localhost 9999 || true |