forked from HMCL-dev/HMCL-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
34 lines (31 loc) · 780 Bytes
/
.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
kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: build
image: jekyll/jekyll:4.2.2
commands:
- touch Gemfile.lock
- chmod a+w Gemfile.lock
- chown -R jekyll:jekyll /drone
- gem sources --add https://mirrors.cloud.tencent.com/rubygems/ --remove https://rubygems.org/
- bundle config mirror.https://rubygems.org https://mirrors.cloud.tencent.com/rubygems
- bundle install
- bundle exec jekyll build --trace --verbose
- bash scripts/copy_index_json.sh
volumes:
- name: dist
path: /drone/src/_site
- name: cache
path: /drone/src/.jekyll-cache
when:
branch: [main]
volumes:
- name: dist
host:
path: /home/ubuntu/docs.hmcl.net/www
- name: cache
host:
path: /home/ubuntu/docs.hmcl.net/cache