blog/.drone.yml
Lunny Xiao 062e50e72a Remove unused content on drone file (#159)
In fact try to trigger v1.13.7 publish

Reviewed-on: gitea/blog#159
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-09 22:16:52 +08:00

53 lines
832 B
YAML

---
kind: pipeline
name: default
platform:
os: linux
arch: arm64
workspace:
base: /srv/app
path: src
steps:
- name: build
pull: always
image: plugins/hugo:latest
commands:
- apk add --no-cache make bash curl
- make clean
- make build
- name: publish
pull: always
image: techknowlogick/drone-netlify:latest
settings:
path: public/
site_id: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
- name: discord
pull: always
image: appleboy/drone-discord:1
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure
trigger:
branch:
- master