-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
41 lines (38 loc) · 1.15 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pipeline:
get-deps:
image: docker:git
when:
event: push
branch: master
commands:
- "git clone https://github.com/moe-serifu-circle/moe-serifu-circle.github.io public"
generate:
image: cbrgm/drone-hugo:0.40.2
output: public
validate: true
when:
event: push
branch: master
write-version:
image: docker:git
when:
event: push
branch: master
commands:
- "git log -1 --pretty=%B >> public/version-history.txt"
- "echo ----------------------------------------------- >> public/version-history.txt"
publish:
image: appleboy/drone-git-push:latest
branch: master
path: public
remote: "[email protected]:moe-serifu-circle/moe-serifu-circle.github.io"
remote_name:
commit: true
commit_message: "[drone] Added generated website"
author_name: "MSC Service Account"
author_email: "[email protected]"
when:
event: push
branch: master
secrets:
- git_push_ssh_key