Update .gitea/workflows/deploy.yaml
Local Build and Deploy / deploy (push) Failing after 0s

This commit is contained in:
remco committed 2026-07-12 11:26:57 +02:00
1 parent 60d0ae790f
commit b0be870795
1 file changed
+4 -2
+4 -2
View File
@@ -7,7 +7,6 @@ on:
jobs:
deploy:
# Target ONLY the shell label to run directly on the host VPS instead of inside a container
runs-on: shell
steps:
@@ -22,7 +21,10 @@ jobs:
# 2. Navigate to your website directory
cd /var/www/atom-nexst/
# 3. Fetch and update code using the local web user to maintain SSH permissions
# Fix ownership to ensure www-data owns the files before Git runs
sudo chown -R www-data:www-data .git/
# 3. Fetch and update code using the local web user
sudo -u www-data git fetch origin --prune
sudo -u www-data git reset --hard origin/main