From 642d32128a103bb127fba072e764e739c025b3dc Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 11 Nov 2024 22:04:22 +0300 Subject: [PATCH] Update .github/workflows/pages-deploy.yml --- .github/workflows/pages-deploy.yml | 31 +++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index 8e6231a..08f30d6 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -22,6 +22,14 @@ concurrency: jobs: build: runs-on: docker + + steps: + - name: Setup SFTP & Ruby + run: | + apt update -y + apt upgrade -y + apt install sftp sshpass ruby jekyll -y + steps: - name: Checkout @@ -33,20 +41,25 @@ jobs: # If using the 'assets' git submodule from Chirpy Starter, uncomment above # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) - - name: CI Health Status Check + - name: Health Check [CI TEST] run: | ls -la pwd whoami - - - name: Setup Ruby - run: | - apt update -y - apt upgrade -y - apt install ruby jekyll -y + echo "this is a text file" >> index.html + date >> index.html + export SSHPASS= ${{ secrets.SFTP_PASSWORD }} + sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! + put index.html www/index.html + bye + ! + - - + - name: Build Site + run: bundle exec jekyll b + env: + JEKYLL_ENV: "production" + # - name: Setup Pages # id: pages