Change to custom SSH deploy
Some checks failed
/ deploy (push) Failing after 8s

This commit is contained in:
Sangelo 2024-01-10 17:09:26 +01:00
parent d9086a946f
commit 7cf4d7a75a

View file

@ -25,12 +25,15 @@ jobs:
run: hugo
- name: Deploy to SSH Host
uses: https://github.com/Creepios/sftp-action@v1.0.5
with:
host: ${{ secrets.SSH_HOST }}
port: 22
username: wiki-deploy
privateKey: ${{ secrets.SSH_PRIV_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
localPath: './public'
remotePath: '/var/www/wiki.lunivity.com/'
run: rsync -avz --delete -e "ssh -i ${{ secrets.SSH_PRIV_KEY }} -o StrictHostKeyChecking=no" ./public/ wiki-deploy@${{ secrets.SSH_HOST }}:/var/www/wiki.lunivity.com/
# - name: Deploy to SSH Host
# uses: https://github.com/Creepios/sftp-action@v1.0.5
# with:
# host: ${{ secrets.SSH_HOST }}
# port: 22
# username: wiki-deploy
# privateKey: ${{ secrets.SSH_PRIV_KEY }}
# passphrase: ${{ secrets.SSH_PASSPHRASE }}
# localPath: './public'
# remotePath: '/var/www/wiki.lunivity.com/'