From 77266430d24cd1f6f686228124e0f5dc1a1293d4 Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 11 Nov 2024 22:13:32 +0300 Subject: [PATCH] Update .github/workflows/pages-deploy.yml --- .github/workflows/pages-deploy.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index e39edc8..b051248 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -28,16 +28,7 @@ jobs: run: | apt update -y apt upgrade -y - apt install openssh-client sshpass ruby jekyll -y - - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - github-server-url: 'https://git.asandikci.com' - # submodules: true - # If using the 'assets' git submodule from Chirpy Starter, uncomment above - # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) + # apt install openssh-client sshpass ruby jekyll -y - name: Health Check [CI TEST] run: | @@ -48,11 +39,19 @@ jobs: date >> index.html cat index.html export SSHPASS= ${{ secrets.SFTP_PASSWORD }} - sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! + sshpass -e sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! put index.html www/index.html bye ! - + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + github-server-url: 'https://git.asandikci.com' + # submodules: true + # If using the 'assets' git submodule from Chirpy Starter, uncomment above + # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) - name: Build Site run: bundle exec jekyll b