Fix deploy: clear PHP source dirs before SCP so deleted files don't persist
Deploy / deploy (push) Successful in 16s
Deploy / deploy (push) Successful in 16s
SCP only adds/overwrites files, never deletes. Clearing app/, routes/, config/, database/, resources/, bootstrap/ before copy ensures the server always reflects the current git state exactly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae579892bc
commit
42748bbe20
1 file changed
+9
@@ -35,6 +35,15 @@ jobs:
|
||||
LOG_CHANNEL=stderr
|
||||
EOF
|
||||
|
||||
- name: PHP-Quellverzeichnisse leeren
|
||||
uses: appleboy/ssh-action@v1.2.0
|
||||
with:
|
||||
host: ${{ vars.VPS_HOST }}
|
||||
username: ${{ vars.VPS_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
script: rm -rf ~/app/app ~/app/routes ~/app/config ~/app/database ~/app/resources ~/app/bootstrap
|
||||
|
||||
- name: Dateien auf VPS kopieren
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user