scp-action/.github/main.workflow

34 lines
575 B
Plaintext
Raw Normal View History

2019-05-11 09:03:14 +00:00
workflow "Copy File Via SSH" {
2019-05-11 09:01:31 +00:00
on = "push"
resolves = [
2019-05-11 11:28:30 +00:00
"Copy file via ssh password",
"Copy file via ssh key",
2019-05-11 09:01:31 +00:00
]
}
2019-05-11 11:28:30 +00:00
action "Copy file via ssh password" {
2019-05-11 09:01:31 +00:00
uses = "appleboy/scp-action@master"
env = {
SOURCE = "tests/a.txt,tests/b.txt"
TARGET = "/home/actions/test"
}
secrets = [
"HOST",
"USERNAME",
"PASSWORD",
]
}
2019-05-11 11:28:30 +00:00
action "Copy file via ssh key" {
uses = "appleboy/scp-action@master"
env = {
SOURCE = "tests/a.txt,tests/b.txt"
TARGET = "/home/actions/test"
}
secrets = [
"HOST",
"USERNAME",
"KEY",
]
}