aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index d0d2ad2..c00715c 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -22,6 +22,18 @@ jobs:
npm ci
npm run build
+
+ - name: Ensure remote directory exists
+ uses: appleboy/ssh-action@master
+ with:
+ host: ${{ secrets.VPS_HOST }}
+ username: ${{ secrets.VPS_USER }}
+ key: ${{ secrets.VPS_SSH_KEY }}
+ port: ${{ secrets.VPS_PORT }}
+ script: |
+ sudo mkdir -p ${{ secrets.VPS_DESTINATION }}
+ sudo chown -R ${{ secrets.VPS_USER }} ${{ secrets.VPS_DESTINATION }}
+
- name: Clean remote directory
uses: appleboy/ssh-action@master
with: