From 02bbfa90fc53ed9bb5d3eb61d9afea79652b8a33 Mon Sep 17 00:00:00 2001 From: asandikci Date: Fri, 15 Nov 2024 20:48:49 +0300 Subject: [PATCH] Update .forgejo/workflows/build_and_test.yml --- .forgejo/workflows/build_and_test.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.forgejo/workflows/build_and_test.yml b/.forgejo/workflows/build_and_test.yml index 6b34a2e..a14e398 100644 --- a/.forgejo/workflows/build_and_test.yml +++ b/.forgejo/workflows/build_and_test.yml @@ -25,21 +25,6 @@ jobs: container: image: git.asandikci.com/docker-images/website_builder:latest steps: - - name: Health Check [CI TEST] - run: | - ls -la - pwd - whoami - echo "this is a text file" >> index.html - date >> index.html - cat index.html - echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd - chmod 0400 ~/.passwd - sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! - put index.html www/index.html - bye - ! - - name: Git Clone run: | git clone https://git.asandikci.com/asandikci.com/web @@ -76,7 +61,9 @@ jobs: git clone https://git.asandikci.com/asandikci.com/web cd web git checkout website - cd _site + cd _site + echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd + chmod 0400 ~/.passwd sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! put -r . www/ bye