2019-09-28 10:54:49 +08:00
|
|
|
name: scp files
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-05-11 17:01:31 +08:00
|
|
|
|
2019-09-28 10:54:49 +08:00
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-09-28 11:15:01 +08:00
|
|
|
- uses: actions/checkout@master
|
2019-09-28 10:54:49 +08:00
|
|
|
- name: copy file via ssh password
|
|
|
|
uses: appleboy/scp-action@master
|
|
|
|
env:
|
|
|
|
HOST: ${{ secrets.HOST }}
|
|
|
|
USERNAME: ${{ secrets.USERNAME }}
|
|
|
|
PASSWORD: ${{ secrets.PASSWORD }}
|
2019-09-28 11:23:50 +08:00
|
|
|
PORT: ${{ secrets.PORT }}
|
2019-09-28 10:54:49 +08:00
|
|
|
with:
|
|
|
|
source: "tests/a.txt,tests/b.txt"
|
2019-09-28 11:37:34 +08:00
|
|
|
target: "test"
|