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