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