From 6c63ed52cd14d1dc4f75b536b58380ce307d42d5 Mon Sep 17 00:00:00 2001 From: Remco <1+remco@noreply.gitlabi@epicnabbo.nl> Date: Sat, 11 Jul 2026 22:16:02 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ca28c993..8a511b42 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -21,14 +21,18 @@ jobs: # 1. Navigate to your project directory on the VPS cd /var/www/atom-nexst/ - # 2. Synchronize the application files via Git (Targeting origin specifically) + # 2. Synchronize the application files via Git git fetch origin git reset --hard origin/main - # --- CLEAN-UP STEP (After git reset, before build) --- + # --- CLEAN-UP STEP --- echo "--- Moving or removing specific items ---" # rm -rf /var/www/atom-nexst/directory-name + # Install missing node_modules based on updated package.json + echo "--- Installing Dependencies ---" + pnpm install --frozen-lockfile + # Load environment variables from .env file for the next steps export $(grep -v '^#' .env | xargs)