Files
EpicNext-Cms/.gitea/workflows/deploy.yaml
T
remco 4f9556e196
Remote Build and Deploy / deploy (push) Failing after 0s
Update .gitea/workflows/deploy.yaml
2026-07-11 21:30:07 +02:00

34 lines
955 B
YAML

name: Remote Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: shell
steps:
- name: Execute Build and Deploy Commands
run: |
echo "--- Starting EPIC WEB CONTROL Deployment ---"
# 1. Navigate directly to the project folder on the VPS
cd /var/www/atom-next/
# 2. Sync the code directly via Git
git fetch --all
git reset --hard origin/main
# 3. Run the database migrations
echo "--- Running Database Migrations ---"
pnpm db:migrate
# 4. Rebuild the application
echo "--- Building Application ---"
pnpm build
# 5. Restart the application service
echo "--- Restarting Atom Next Service ---"
sudo systemctl restart atom-next.service
echo "--- Deployment Completed Successfully ---"