Update .gitea/workflows/deploy.yml

This commit is contained in:
remco committed 2026-07-11 21:14:12 +02:00
1 parent 038232655a
commit 788d0b0e09
1 file changed
+17 -16
+17 -16
View File
@@ -6,20 +6,21 @@ on:
jobs:
deploy:
runs-on:
- self-hosted
- linux
- shell
runs-on: ubuntu-22.04
steps:
- name: Execute Build and Deploy Commands
run: |
echo "--- Starting Deployment Pipeline ---"
# 1. Navigate to your project folder on the VPS
cd /var/www/atom-next/
# 2. Sync the VPS local code with your Gitea repository
git fetch --all
git reset --hard origin/main
echo "--- Deployment Completed Successfully ---"
- name: Checkout Repository
uses: actions/checkout@v4
- name: Execute Deployment via SSH
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 EPIC WEB CONTROL Deployment ---"
cd /var/www/atom-next/
git fetch --all
git reset --hard origin/main
echo "--- Deployment Completed Successfully ---"