mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-07-28 16:18:20 +08:00
Compare commits
2 Commits
223c838265
...
a82426be2b
Author | SHA1 | Date | |
---|---|---|---|
a82426be2b | |||
9fbaa3f45b |
36
.drone.yml
36
.drone.yml
@ -1,20 +1,26 @@
|
||||
pipeline:
|
||||
jekyll-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://gems.ruby-china.com/ --remove https://rubygems.org/
|
||||
- bundle install
|
||||
- bundle exec jekyll build
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
deploy-site:
|
||||
image: drillster/drone-rsync
|
||||
steps:
|
||||
- name: jekyll-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.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
|
||||
- bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems
|
||||
- bundle install
|
||||
- bundle exec jekyll build
|
||||
|
||||
- name: deploy-site
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
source: _site/*
|
||||
target: ~/docs.hmcl.net
|
||||
recursive: true
|
||||
delete: true
|
||||
when:
|
||||
branch: [master]
|
||||
event: [push]
|
||||
when:
|
||||
branch: [master]
|
||||
event: [push]
|
||||
|
Loading…
Reference in New Issue
Block a user