Skip to content

Commit 24b6cb4

Browse files
authored
Revert "将站点构建迁移至 GitHub Actions (#400)"
This reverts commit 34b9692.
1 parent 34b9692 commit 24b6cb4

File tree

2 files changed

+27
-57
lines changed

2 files changed

+27
-57
lines changed

.drone.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,33 @@ name: default
55
clone:
66
depth: 1
77

8-
trigger:
9-
branch:
10-
- pages
11-
event:
12-
- push
13-
148
steps:
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

2428
volumes:
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

.github/workflows/build.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)