From bbb0af95e1fe05d6b80e6c956a4c1bb22d1e50f3 Mon Sep 17 00:00:00 2001 From: dskvr Date: Wed, 10 Apr 2024 22:12:32 +0200 Subject: [PATCH] mkdir first --- .github/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 7ccfe5a..1f8b516 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -48,7 +48,9 @@ jobs: # core.setFailed('/var/www/html/${{ steps.package-version.outputs.current-version}} already exists') - name: Deploy with rsync - run: rsync -avz ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html/${{ steps.package-version.outputs.current-version}} + run: | + mkdir -p /var/www/html/${{ steps.package-version.outputs.current-version}} + rsync -avz ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html/${{ steps.package-version.outputs.current-version}} - name: Update symlink run: ln -sf /var/www/html/${{ steps.package-version.outputs.current-version}} /var/www/html/latest