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
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:
parent
cef6f9be05
commit
dcf4b27a7a
1 changed files with 9 additions and 11 deletions
|
@ -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
|
|
||||||
# !
|
|
Loading…
Reference in a new issue