From 4f4044992b19f1ef710af49ac6a3bd1437184037 Mon Sep 17 00:00:00 2001 From: Remco <1+remco@noreply.gitlabi@epicnabbo.nl> Date: Sat, 11 Jul 2026 21:08:57 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/ .gitea/workflows/deploy.yml b/ .gitea/workflows/deploy.yml index 39e14671..a843fe0b 100644 --- a/ .gitea/workflows/deploy.yml +++ b/ .gitea/workflows/deploy.yml @@ -1,34 +1,26 @@ name: Remote Build and Deploy - on: push: branches: - -main, + - main jobs: deploy: - runs-on: ubuntu-latest + runs-on: shell steps: - -name: Checkout Repository - uses: actions/checkout@v4, - - -name: Execute Remote SSH Commands to Build and Deploy - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.SSH_HOST }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.SSH_PRIVATE_KEY }} - port: ${{ secrets.SSH_PORT }} - script: | + - name: Execute Build and Deploy Commands + run: | echo "--- Starting Deployment Pipeline ---" + # 1. Navigate to your project folder on the VPS - cd /var/www/atom-nexst/ + cd /var/www/atom-next/ + # 2. Sync the VPS local code with your Gitea repository git fetch --all git reset --hard origin/main - # 3. Build & Restart Commands (Uncomment or adapt to your stack)# Node.js example:# npm install --production# npm run build# pm2 restart my-app - # Docker example:# docker compose down# docker compose up -d --build + + # 3. Build & Restart Commands (Uncomment or adapt to your stack if needed) + # npm install --production + # npm run build + echo "--- Deployment Completed Successfully ---" \ No newline at end of file