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