diff options
| author | Leander <80996591+schererleander@users.noreply.github.com> | 2025-05-30 04:04:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 04:04:18 +0200 |
| commit | 8184901a2758f6833309ee4bf6969c52f26a1ca1 (patch) | |
| tree | 11b9785cb6272745a6da3c14dc25bd02efedf9d5 | |
| parent | 77173c8d4878a1956b542c00485a17bd398d5ef4 (diff) | |
Update deploy.yml
| -rw-r--r-- | .github/workflows/deploy.yml | 12 |
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: |
