This commit is contained in:
parent
d9086a946f
commit
7cf4d7a75a
1 changed files with 12 additions and 9 deletions
|
@ -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/'
|
||||
|
|
Loading…
Reference in a new issue