feat: 實現版本號自動化更新與修復側邊欄 RWD 問題
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 50s

This commit is contained in:
2026-02-13 14:46:26 +08:00
parent 77a7d31dc1
commit 2e9ff6c832
6 changed files with 123 additions and 130 deletions

View File

@@ -92,6 +92,10 @@ jobs:
key: ${{ secrets.DEMO_SSH_KEY }}
script: |
docker exec -u 1000:1000 -w /var/www/html star-erp-laravel sh -c "
# 0. 更新版本號 (使用 Git Hash)
VERSION=\"v1.0-\$(git rev-parse --short HEAD)\"
sed -i \"s/^APP_VERSION=.*/APP_VERSION=\$VERSION/\" .env || echo \"APP_VERSION=\$VERSION\" >> .env
# 1. 後端依賴 (Demo 環境建議加上 --no-interaction 避免卡住)
composer install --no-dev --optimize-autoloader --no-interaction &&
@@ -191,6 +195,10 @@ jobs:
echo "容器狀態:" && docker ps --filter "name=star-erp-laravel"
docker exec -u 1000:1000 -w /var/www/html star-erp-laravel sh -c "
# 0. 更新版本號
VERSION=\"v1.0-\$(git rev-parse --short HEAD)\"
sed -i \"s/^APP_VERSION=.*/APP_VERSION=\$VERSION/\" .env || echo \"APP_VERSION=\$VERSION\" >> .env
composer install --no-dev --optimize-autoloader &&
npm install &&
npm run build