mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-09-15 09:01:11 +08:00
Revert "将站点构建迁移至 GitHub Actions (#400)"
This reverts commit 34b9692db7.
This commit is contained in:
+27
-17
@@ -5,23 +5,33 @@ name: default
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- pages
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
image: alpine:3.23.2
|
||||
volumes:
|
||||
- name: site
|
||||
path: /site
|
||||
commands:
|
||||
- rm -rf /site/*
|
||||
- mv ./* /site/
|
||||
- name: build
|
||||
image: ruby:3.4
|
||||
environment:
|
||||
JEKYLL_ENV: production
|
||||
BUNDLE_PATH: vendor/bundle
|
||||
commands:
|
||||
- bundle config mirror.https://rubygems.org https://mirrors.cloud.tencent.com/rubygems
|
||||
- bundle install --verbose
|
||||
- bundle exec jekyll build --trace --verbose --config _config.yml,_config.drone.yml
|
||||
volumes:
|
||||
- name: dist
|
||||
path: /drone/src/_site
|
||||
- name: vendor
|
||||
path: /drone/src/vendor
|
||||
- name: jekyll-cache
|
||||
path: /drone/src/.jekyll-cache
|
||||
when:
|
||||
branch: [main]
|
||||
|
||||
volumes:
|
||||
- name: site
|
||||
host:
|
||||
path: /home/ubuntu/docs.hmcl.net/www
|
||||
- name: dist
|
||||
host:
|
||||
path: /home/ubuntu/docs.hmcl.net/www
|
||||
- name: vendor
|
||||
host:
|
||||
path: /home/ubuntu/docs.hmcl.net/cache/vendor
|
||||
- name: jekyll-cache
|
||||
host:
|
||||
path: /home/ubuntu/docs.hmcl.net/cache/jekyll-cache
|
||||
|
||||
Reference in New Issue
Block a user