mirror of
https://github.com/appleboy/scp-action.git
synced 2024-11-24 08:05:07 +08:00
21 lines
446 B
YAML
21 lines
446 B
YAML
name: scp files
|
|
on: [push]
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- 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"
|
|
timeout: 30s
|
|
command_timeout: 30s
|