Update .forgejo/workflows/build_and_test.yml
All checks were successful
Build and Deploy Test Version (with/without Drafts) - next.asandikci.com / build-drafts-and-deploy (push) Successful in 1m1s

This commit is contained in:
Aliberk Sandıkçı 2024-11-16 00:24:36 +03:00
parent cef6f9be05
commit dcf4b27a7a

View file

@ -87,14 +87,12 @@ jobs:
pwd pwd
cp -rfv ../web/_site . cp -rfv ../web/_site .
ls -la ls -la
lftp -c "set sftp:auto-confirm yes; set sftp:connect-program \"ssh -a -x -o UserKnownHostsFile=/dev/null\"; open --user ${{ secrets.SFTP_USERNAME }} --password ${{ secrets.SFTP_PASSWORD }}sftp://${{ vars.SFTP_HOST }}; rm -r www/; mirror -R . www/; quit" # CURRENTLY USING PURE STFP FOR AUTH ONLY
# TODO: CHANGE THIS
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
# echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd chmod 0400 ~/.passwd
# chmod 0400 ~/.passwd sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
# sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! bye
# rm www/* !
# put -r . www/ lftp --user ${{ secrets.SFTP_USERNAME }} --password ${{ secrets.SFTP_PASSWORD }} sftp://${{ vars.SFTP_HOST }} -e "rm -r www/; mirror -R . www/"
# bye
# !