This commit is contained in:
parent
206045607e
commit
4801c886f4
20
.drone.yml
20
.drone.yml
@ -2,7 +2,6 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
|
||||
steps:
|
||||
- name: build-draft
|
||||
image: plugins/hugo
|
||||
@ -13,20 +12,19 @@ steps:
|
||||
buildExpired: true
|
||||
buildFuture: true
|
||||
theme: geeklab
|
||||
when:
|
||||
branch: [ draft ]
|
||||
event: [ push ]
|
||||
when:
|
||||
branch: [ draft ]
|
||||
event: [ push ]
|
||||
|
||||
- name: build
|
||||
image: plugins/hugo
|
||||
settings:
|
||||
hugoVersion: 0.52
|
||||
validate: true
|
||||
buildFuture: true
|
||||
theme: geeklab
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
|
||||
- name: publish
|
||||
image: appleboy/drone-scp
|
||||
@ -41,6 +39,6 @@ steps:
|
||||
from_secret: ssh_key
|
||||
strip_components: 1
|
||||
rm: true
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
when:
|
||||
branch: [ master ]
|
||||
event: [ push ]
|
||||
|
Reference in New Issue
Block a user