45 lines
885 B
YAML
45 lines
885 B
YAML
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
recursive: true
|
|
|
|
steps:
|
|
build-production:
|
|
image: plugins/hugo
|
|
settings:
|
|
hugo_version: 0.147.0
|
|
when:
|
|
branch: master
|
|
|
|
build-drafts:
|
|
image: plugins/hugo
|
|
settings:
|
|
hugo_version: 0.147.0
|
|
buildDrafts: true
|
|
buildExpired: true
|
|
buildFuture: true
|
|
when:
|
|
branch:
|
|
exclude:
|
|
- master
|
|
|
|
deploy-on-ovh:
|
|
image: nemunaire/drone-ftps
|
|
settings:
|
|
hostname: ftp.cluster021.hosting.ovh.net
|
|
ftp_username:
|
|
from_secret: ovh_ftp_username
|
|
ftp_password:
|
|
from_secret: ovh_ftp_password
|
|
clean_dir: true
|
|
pre_action: "set ftp:passive-mode true"
|
|
secure: false
|
|
src_dir: /public/
|
|
dest_dir: /www/
|
|
when:
|
|
- branch: master
|
|
event:
|
|
- cron
|
|
- push
|
|
- tag
|