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: jobs:
deploy: deploy:
runs-on: runs-on: ubuntu-22.04
- self-hosted
- linux
- shell
steps: steps:
- name: Execute Build and Deploy Commands - name: Checkout Repository
run: | uses: actions/checkout@v4
echo "--- Starting Deployment Pipeline ---"
- name: Execute Deployment via SSH
# 1. Navigate to your project folder on the VPS uses: appleboy/[email protected]
cd /var/www/atom-next/ with:
host: ${{ secrets.SSH_HOST }}
# 2. Sync the VPS local code with your Gitea repository username: ${{ secrets.SSH_USER }}
git fetch --all key: ${{ secrets.SSH_PRIVATE_KEY }}
git reset --hard origin/main port: ${{ secrets.SSH_PORT }}
script: |
echo "--- Deployment Completed Successfully ---" echo "--- Starting EPIC WEB CONTROL Deployment ---"
cd /var/www/atom-next/
git fetch --all
git reset --hard origin/main
echo "--- Deployment Completed Successfully ---"