From 2b94110af61d47d0475971f724eb4e0f3d24ecd3 Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 11 Nov 2024 22:17:12 +0300 Subject: [PATCH] Update .github/workflows/pages-deploy.yml --- .github/workflows/pages-deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index 73527fd..41e5eed 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -28,8 +28,7 @@ jobs: run: | apt update -y apt upgrade -y - apt install sshpass - # openssh-client ruby jekyll -y + apt install sshpass openssh-client # ruby jekyll -y - name: Health Check [CI TEST] run: | @@ -39,8 +38,9 @@ jobs: echo "this is a text file" >> index.html date >> index.html cat index.html - export SSHPASS= ${{ secrets.SFTP_PASSWORD }} - sshpass -e sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! + echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd + chmod 0400 ~/.passwd + sshpass -f ~/.passwd -e sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! put index.html www/index.html bye !