- only copy files when branch is master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb37bef823
commit
4d3b30930d
@ -5,6 +5,9 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: clean environment
|
- name: clean environment
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: host
|
from_secret: host
|
||||||
@ -18,6 +21,9 @@ steps:
|
|||||||
- rm -rf *
|
- rm -rf *
|
||||||
- name: copy files
|
- name: copy files
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: host
|
from_secret: host
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user