Add .gitea/workflows/deploy.yaml
Remote Build and Deploy / deploy (push) Has been cancelled

This commit is contained in:
remco committed 2026-07-11 21:16:04 +02:00
1 parent 03135fb7c1
commit 033011fd38
1 file changed
+31
+31
View File
@@ -0,0 +1,31 @@
name: Remote Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Execute Remote SSH Commands to Build and Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
echo "--- Starting Deployment Pipeline ---"
# 1. Navigeer naar de juiste map op de VPS
cd /var/www/atom-next/
# 2. Synchroniseer de lokale code met Gitea
git fetch --all
git reset --hard origin/main
echo "--- Deployment Completed Successfully ---"