From 8184901a2758f6833309ee4bf6969c52f26a1ca1 Mon Sep 17 00:00:00 2001 From: Leander <80996591+schererleander@users.noreply.github.com> Date: Fri, 30 May 2025 04:04:18 +0200 Subject: Update deploy.yml --- .github/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github/workflows') 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: -- cgit v1.3.1