File tree Expand file tree Collapse file tree 2 files changed +27
-57
lines changed
Expand file tree Collapse file tree 2 files changed +27
-57
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,33 @@ name: default
55clone :
66 depth : 1
77
8- trigger :
9- branch :
10- - pages
11- event :
12- - push
13-
148steps :
15- - name : deploy
16- image : alpine:3.23.2
17- volumes :
18- - name : site
19- path : /site
20- commands :
21- - rm -rf /site/*
22- - mv ./* /site/
9+ - name : build
10+ image : ruby:3.4
11+ environment :
12+ JEKYLL_ENV : production
13+ BUNDLE_PATH : vendor/bundle
14+ commands :
15+ - bundle config mirror.https://rubygems.org https://mirrors.cloud.tencent.com/rubygems
16+ - bundle install --verbose
17+ - bundle exec jekyll build --trace --verbose --config _config.yml,_config.drone.yml
18+ volumes :
19+ - name : dist
20+ path : /drone/src/_site
21+ - name : vendor
22+ path : /drone/src/vendor
23+ - name : jekyll-cache
24+ path : /drone/src/.jekyll-cache
25+ when :
26+ branch : [main]
2327
2428volumes :
25- - name : site
26- host :
27- path : /home/ubuntu/docs.hmcl.net/www
29+ - name : dist
30+ host :
31+ path : /home/ubuntu/docs.hmcl.net/www
32+ - name : vendor
33+ host :
34+ path : /home/ubuntu/docs.hmcl.net/cache/vendor
35+ - name : jekyll-cache
36+ host :
37+ path : /home/ubuntu/docs.hmcl.net/cache/jekyll-cache
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments