26 lines
678 B
YAML
26 lines
678 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. Navigeer direct naar de juiste map op de VPS
|
|
cd /var/www/atom-next/
|
|
|
|
# 2. Synchroniseer de code direct via Git
|
|
git fetch --all
|
|
git reset --hard origin/main
|
|
|
|
# 3. Voer de database migraties uit
|
|
echo "--- Running Database Migrations ---"
|
|
pnpm db:migrate
|
|
|
|
echo "--- Deployment Completed Successfully ---" |