mirror of
https://github.com/appleboy/scp-action.git
synced 2024-11-27 03:46:09 +08:00
30 lines
744 B
YAML
30 lines
744 B
YAML
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 }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
port: ${{ secrets.PORT }}
|
|
source: "tests/a.txt,tests/b.txt"
|
|
target: "test"
|
|
|
|
- name: copy file via ssh key
|
|
uses: appleboy/scp-action@master
|
|
env:
|
|
HOST: ${{ secrets.HOST }}
|
|
USERNAME: ${{ secrets.USERNAME }}
|
|
PORT: ${{ secrets.PORT }}
|
|
KEY: ${{ secrets.KEY }}
|
|
with:
|
|
source: "tests/a.txt,tests/b.txt"
|
|
target: "test"
|