chore: remove debug steps and loyment workflow
Some checks failed
CI / build-and-test (push) Successful in 8m12s
CI / deploy (push) Has been cancelled

This commit is contained in:
SpecialX
2025-12-22 13:38:56 +08:00
parent 36b2275f50
commit aaf4e498f8

View File

@@ -30,52 +30,55 @@ jobs:
- name: Build - name: Build
run: npm run build run: npm run build
- name: 🔍 Debug - List Build Files # - name: 🔍 Debug - List Build Files
# run: |
# echo "======================="
# echo "1. Root directory files:"
# ls -la
# echo "======================="
# echo "2. Checking .next directory:"
# if [ -d ".next" ]; then
# ls -la .next
# else
# echo "❌ Error: .next folder does not exist!"
# fi
# echo "======================="
# echo "3. Deep check of .next (excluding node_modules):"
# # 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长
# find .next -maxdepth 4 -not -path '*/node_modules*'
- name: Prepare standalone build
run: | run: |
echo "=======================" mkdir -p .next/standalone/public
echo "1. Root directory files:" mkdir -p .next/standalone/.next/static
ls -la
echo "=======================" cp -r public/* .next/standalone/public/
echo "2. Checking .next directory:" cp -r .next/static/* .next/standalone/.next/static/
if [ -d ".next" ]; then cp Dockerfile .next/standalone/Dockerfile
ls -la .next
else
echo "❌ Error: .next folder does not exist!"
fi
echo "=======================" - name: Upload production build artifact
echo "3. Deep check of .next (excluding node_modules):" uses: actions/upload-artifact@v3
# 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长 with:
find .next -maxdepth 4 -not -path '*/node_modules*' name: next-build
path: .next/standalone
# - name: Prepare standalone build deploy:
# run: | needs: build-and-test
# cp -r public .next/standalone/public runs-on: CDCD
# cp -r .next/static .next/standalone/.next/static container:
# cp Dockerfile .next/standalone/Dockerfile image: dockerreg.eazygame.cn/node-with-docker:22
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: next-build
# - name: Upload production build artifact - name: Deploy to Docker
# uses: actions/upload-artifact@v3 run: |
# with: docker build -t nextjs-app .
# name: next-build docker stop nextjs-app || true
# path: .next/standalone docker rm nextjs-app || true
docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app
# deploy:
# needs: build-and-test
# runs-on: CDCD
# container:
# image: dockerreg.eazygame.cn/node-with-docker:22
# steps:
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# name: next-build
# - name: Deploy to Docker
# run: |
# docker build -t nextjs-app .
# docker stop nextjs-app || true
# docker rm nextjs-app || true
# docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app