scp-action/.github/workflows/ci.yml

29 lines
733 B
YAML
Raw Normal View History

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-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
with:
2019-09-28 04:13:03 +00:00
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
2019-09-28 02:54:49 +00:00
source: "tests/a.txt,tests/b.txt"
2019-09-28 03:37:34 +00:00
target: "test"
2019-09-28 04:01:18 +00:00
- name: copy file via ssh key
uses: appleboy/scp-action@master
with:
2019-09-28 04:16:21 +00:00
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
2019-09-28 04:01:18 +00:00
source: "tests/a.txt,tests/b.txt"
target: "test"