Trying a new action

pull/1/head
s00ner 2022-01-28 16:10:19 -05:00
parent a32947f784
commit 193490e560
1 changed files with 16 additions and 11 deletions

View File

@ -1,13 +1,18 @@
name: Copy via ssh
on: [push] on: [push]
jobs:
uses: garygrossgarten/github-action-scp@v0.7.3 jobs:
with: deploy_job:
local: / runs-on: ubuntu-latest
remote: /home/mdbook/wiki/src name: deploy
host: ${{ secrets.HOST }} steps:
port: ${{ secrets.SSH_PORT}} - name: Checkout
username: ${{ secrets.USERNAME }} uses: actions/checkout@v2
privateKey: ${{ secrets.SSH_KEY}} - name: deploy file
passphrase: ${{ secrets.KEY_PASS}} uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: ${{ secrets.USERNAME}}
server: ${{ secrets.HOST}}
ssh_private_key: ${{ secrets.SSH_KEY }}
local_path: './*'
remote_path: '/home/mdbook/wiki/src'
args: '-o ConnectTimeout=5'