Update .gitea/workflows/deploy.yaml
Local Build and Deploy / deploy (push) Successful in 48s

This commit is contained in:
Simo committed 2026-07-12 14:22:07 +02:00
1 parent 149dc215f0
commit 685033dcbd
1 file changed
+8 -10
+8 -10
View File
@@ -18,9 +18,6 @@ jobs:
# 2. Navigate to your website directory # 2. Navigate to your website directory
cd /var/www/atom-nexst/ cd /var/www/atom-nexst/
# Prevent Git permission errors from the previous www-data ownership change
git config --global --add safe.directory /var/www/atom-nexst
# Point Git directly to the local Gitea folder path # Point Git directly to the local Gitea folder path
git remote set-url origin /docker/gitea/gitea/git/repositories/remco/epicnext-cms.git/ git remote set-url origin /docker/gitea/gitea/git/repositories/remco/epicnext-cms.git/
@@ -31,14 +28,15 @@ jobs:
# REMOVE OLD CACHE AND BUILDS # REMOVE OLD CACHE AND BUILDS
rm -rf .next .output dist rm -rf .next .output dist
# 4. Configure trusted dependencies and install packages smoothly # 4. Configure trusted dependencies globally for this session and install
export PNPM_CONFIG_ONLY_BUILT_DEPENDENCIES="@parcel/watcher,@swc/core,sharp" export PNPM_CONFIG_ONLY_BUILT_DEPENDENCIES="@parcel/watcher,@swc/core,sharp"
pnpm install pnpm install --frozen-lockfile
# 5. Sync Prisma with the actual DB structure and generate types # 5. Apply versioned CMS migrations and generate the Prisma client.
echo "Syncing schema with database..." # Never run `prisma db pull` during deploy: it rewrites schema.prisma
pnpm prisma db pull # from the live emulator database and can discard CMS schema metadata.
pnpm prisma generate pnpm db:migrate
pnpm prisma:generate
# 6. Next.js Build # 6. Next.js Build
pnpm build pnpm build
@@ -58,4 +56,4 @@ jobs:
exit 1 exit 1
fi fi
echo "--- Deployment successfully completed ---" echo "--- Deployment successfully completed ---"