Refactor deployment workflow to utilize GitHub Actions for improved efficiency. Updated deploy.yml to include actions for checkout and Node.js setup, streamlined build process for Next.js with prebuilt assets, and revised deployment script to eliminate unnecessary steps. Enhanced documentation for clarity on automated deployment process.

This commit is contained in:
smhk1376 committed 2026-10-20 01:17:13 +03:30
1 parent bd2cfa5a26
commit e1b5286946
5 files changed
+90 -39

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
export DISABLE_REACT_COMPILER=1
export NEXT_TELEMETRY_DISABLED=1
export NEXT_PUBLIC_SITE_URL="${NEXT_PUBLIC_SITE_URL:-https://edu.mstaut.ir}"
export NODE_OPTIONS="${NODE_OPTIONS:---max-old-space-size=3072}"
npm ci --no-audit --no-fund
npm run build
test -f .next/standalone/server.js
test -f .next/BUILD_ID
bash scripts/assemble-prebuilt.sh "$(pwd)/prebuilt"