added github action

pull/1/head
s00ner 2022-01-28 15:21:51 -05:00
parent b454af307f
commit a878b31d7b
1 changed files with 19 additions and 0 deletions

19
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: scp files
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY}}
passphrase: ${{ secrets.KEY_PASS }}
port: ${{ secrets.PORT }}
source: "*"
target: "/home/mdbook/wiki/src/"