We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3422c commit ecf9205Copy full SHA for ecf9205
.github/workflows/deploy-to-vps.yml
@@ -17,13 +17,17 @@ jobs:
17
uses: easingthemes/ssh-deploy@main
18
env:
19
VPS_ENV_DIRECTORY: ${{ secrets.VPS_ENV_DIRECTORY }}
20
+ VPS_TARGET: ${{ secrets.VPS_TARGET }}
21
with:
22
SSH_PRIVATE_KEY: ${{ secrets.VPS_SSH_PRIVATE_KEY }}
23
ARGS: "-rlgoDzvc --delete"
24
REMOTE_HOST: ${{ secrets.VPS_HOST }}
25
REMOTE_USER: ${{ secrets.VPS_USER }}
26
TARGET: ${{ secrets.VPS_TARGET }}
27
SCRIPT_AFTER: |
28
+ # Explicitly navigate to the target directory (workaround for SSH deploy bug(?))
29
+ cd ${{ env.VPS_TARGET }}
30
+
31
# Get environment and config files
32
cp -ar ${{ env.VPS_ENV_DIRECTORY }}/. .
33
0 commit comments