diff --git a/.github/workflows/search-ci-cd.yml b/.github/workflows/search-ci-cd.yml index 3b2195a1..a5e78120 100644 --- a/.github/workflows/search-ci-cd.yml +++ b/.github/workflows/search-ci-cd.yml @@ -56,6 +56,11 @@ jobs: run: | mkdir -p ~/.ssh ssh-keyscan -H ${{ secrets.DEPLOYMENT_MACHINE_IP }} >> ~/.ssh/known_hosts + + - name: Check if service-search directory exists on VPS + run: | + sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} "if [ ! -d ~/service-search ]; then mkdir ~/service-search; fi" + - name: Transfer JAR to VPS run: |